I have a problem with my program. I am trying to call a method from a secondary class in the main class.
Whenever I debug the Test class I only get the text output "hello, Im the Test class!" or "hello Im the TestCall Class!" when I run the TestCall class.
I want it to display either one of the two text outputs and the text "I am method showMessage from class Test!"
This is the main class
And this is the secondary class:
The first code I made had no:
Then I received an error message when I tried to debug it: "Exception in thread "main" java.lang.NoSuchMethodError: main"