The Scanner.next method reads and returns the next word only. It does not read an EOL. So the next time around the loop when you call nextLine it does read the EOL and all it returns is an empty...