I was trying to give OP a nudge in the right direction so he could figure it out. Simply posting the code solution isn't always the best way to help somebody learn.
Type: Posts; User: KevinWorkman
I was trying to give OP a nudge in the right direction so he could figure it out. Simply posting the code solution isn't always the best way to help somebody learn.
Well, the error says it all. Your pChoice variable is an int. You're trying to compare it to a String. That's not going to work.
Hint: You also seem to ignore your pInput variable.
What error are you receiving?