Using Scanner class methods has a problem with the end line character staying in the buffer. Mixing calls to nextInt() with calls to nextLine() will mean nextLine() reads an empty line as it clears...
Type: Posts; User: Norm
Using Scanner class methods has a problem with the end line character staying in the buffer. Mixing calls to nextInt() with calls to nextLine() will mean nextLine() reads an empty line as it clears...
The call to parseInt() on line 35 is passing it an empty String: ""
One way to prevent that is have the program test the contents of the String before using it in a call to parseInt()
Add a call to the printStackTrace() method in the catch block so the reason and location of the exception is printed.