I have a simple code such as
I assumed that the function nextInt would automatically assign choices as an int and if so why does my if statement say Incompatible operand types Scanner and int.
Also how would I do it if the Scanner input was a
string and I want to say if (choices == attack) etc
Thanks!