by rodd@[EMAIL PROTECTED]
(Rod Dorman)
Apr 19, 2005 at 06:30 PM
In article
<17bb64d9395061dc1cf90d3661e2b22e@[EMAIL PROTECTED]
>,
codeSuckior <cul8r2fast4u@[EMAIL PROTECTED]
> wrote:
>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'.
You are aware that comparison and assignment are diferent operators
aren't you?
--
-- Rod --
rodd(at)polylogics(dot)com