printlns are useful for seeing what the computer is seeing.
Type: Posts; User: Norm
printlns are useful for seeing what the computer is seeing.
Add a println() to the code to print out the value of the line read from the file so you can see what the Scanner method is trying to read with nextInt().