What does the hasNextLine mean. I would use it like this:
Code:
while ( scan.hasNextLine() ) {
System.out.println("The program ended gracefully");
}
Comment