That would work as long as the name doesn't have any spaces in it.
Type: Posts; User: Norm
That would work as long as the name doesn't have any spaces in it.
Please post the current version of the code.
The order of the calls won't change what the nextInt() method does. It still leaves the lineend character in its buffer.
To see that nextLine() reads...
The Scanner class's nextInt() method leaves the lineend character in its buffer. The next call to the nextLine() method reads and returns that lineend character as an empty line.
Add a call to the...