0

I can't seem to make the program run, please help.

https://code.sololearn.com/c5303l8Qo74f/?ref=app

6th Nov 2019, 2:58 PM
GumGumBro 901
GumGumBro 901 - avatar
2 Antworten
+ 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.
6th Nov 2019, 3:08 PM
Avinesh
Avinesh - avatar
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.
6th Nov 2019, 4:07 PM
Odyel
Odyel - avatar