Scanner class skips over whitespace

Use Scanner’s hasNextLine() and nextLine() methods and you’ll find your solution since this will allow you to capture empty or white-space lines.

Leave a Comment