Are there any error messages when the program is executed?
The posted code is still reading TWO lines every time it goes around the loop.
It should get an error on the 19th time around if the...
Type: Posts; User: Norm
Are there any error messages when the program is executed?
The posted code is still reading TWO lines every time it goes around the loop.
It should get an error on the 19th time around if the...
With the nested loops, it should try to loop 36*36 times.
Are there any error messages when the program executes?
Think about this problem and what the code is doing.
What happens to the data following the "1" on the first line?
Did you miss this part of my last post?
A new line is read each time the nextLine() method is called.
Look at the code and see how it reads lines from the file and see what it does with each line...
A new line is read each time the nextLine() method is called. Is the code doing what you want?
What should the output look like?
What is wrong with what is printed?
Please edit your post and...