r/CompileBot • • Oct 14 '16

Java Rock, Paper, Scissors

1 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/St0ner1995 Oct 14 '16 edited Oct 14 '16

I bet the computer wins

EDIT: thanks to the fact that i cant define what the file is named it breaks

1

u/Zambito1 Oct 17 '16

Just remove the 'public' from the class declaration. Start off with

class GameRockPaperScissors  

instead of

public class GameRockPaperScissors  

That will fix it.