Remove all scanner.nextLine() calls and scanner object-wise.

So using multiple commands in one line is accepted.