i am in a programming class at my school and am FAILING! i wrote a program
to play a game of rock paper scissors and i dont know what the heck is
wrong with it. the line it is messing up on says
"if((userchoice.equalsIgnoreCase("rock") && choice = 1) ||
(userchoice.equalsIgnoreCase("paper") && choice = 2) ||
(userchoice.equalsIgnoreCase("scissors") && choice = 3));" it is
highlighting the first & sign and telling me 'Invalid left hand side of
assignment'. what the heck is going on? i have tried everything! can
anyone please help me, i MUST pass this class and am falling behind fast!
to anyone who has anything helpful, thanks in advance!