The String read by the nextLine() method is printed and then is thrown away and not saved. What is the purpose of the statement:
System.out.println(myScanner.nextLine());
The data on every line...
Type: Posts; User: Norm
The String read by the nextLine() method is printed and then is thrown away and not saved. What is the purpose of the statement:
System.out.println(myScanner.nextLine());
The data on every line...
There is code that reads the values from the file and computes a value.
Can you put that code inside the loop?
What does your program print out when it executes?
The program doesn't save the String that is returned by the nextLine() method. It should save the String that was read by assigning it to a...