+ 1
Not show correct winner
https://sololearn.com/compiler-playground/chV46hQymuSj/?ref=app
1 Antwort
+ 6
When comparing strings in java, do not use ==. Use String.equals()
if(u.equals("Rock")||u.equals("rock"))
{ui=0;}
else if(u.equals("paper")||u.equals("Paper"))
{ui=1;}
else if(u.equals("scissor")||u.equals("Scissor"))
{ui=2;}