Firstly this is not a homework question. I am practicing my knowledge on java. I figured a good way to do this is to write a simple program without help. Unfortunately, my c
Another issue is, the line
y = operands.next();
is attempting to place a String returned from Scanner.next() into the a variable y which is declared as a type int.
String
y
int
The Scanner.nextInt() method can be used to attempt to return an int.