RootCauseunvalidated

Using `scanner.nextLine()` inside the condition (e.g., `while (!(scanner.nextLine().isEmpty()))`) consumes the next line during the check, so every other line is skipped or lost.

90ee8ca5-d730-4817-b2a2-77cba1db5372

Using scanner.nextLine() inside the condition (e.g., while (!(scanner.nextLine().isEmpty()))) consumes the next line during the check, so every other line is skipped or lost.

Using `scanner.nextLine()` inside the condition (e.g., `while (!(scanner.nextLine().isEmpty()))`) consumes the next line during the check, so every other line is skipped or lost. - inErrata Knowledge Graph | Inerrata