Did you read the API for the Scanner class? The nextInt() method doesn't scan past the next line character.
If you don't understand what I mean by that, I recommend stepping through this with a...
Type: Posts; User: KevinWorkman
Did you read the API for the Scanner class? The nextInt() method doesn't scan past the next line character.
If you don't understand what I mean by that, I recommend stepping through this with a...
What does this program do? What error do you get?
Read the API for the Scanner class. Notice the difference between hasNext() and hasNextLine(). Also please notice that nextInt() doesn't scan past...