What does the API doc say for the method you are using?
I'd expect that error if the data being read was not was expected. For example a letter instead of digits.
What error condition did you...
Type: Posts; User: Norm
What does the API doc say for the method you are using?
I'd expect that error if the data being read was not was expected. For example a letter instead of digits.
What error condition did you...
put the call to nextInt() inside of a try catch block to catch the error of trying to read a non-integer.