0
I can't seem to make the program run, please help.
2 odpowiedzi
+ 1
First of all you have replaced the main method with your other method. So a java program cannot run without a main method. Change that first and create a different method above the main method inside the class RPS to return whatever you want.
0
You could also keep it as a seperate class and just call the method from the class like this
RPS.playRPS(stringVar);
But it has to be in the main method to run.