It looks like this assignment is way past your current java knowledge. There are lots of basic java coding rules that are a problem for you.
For example:
replacing a statement that reads data...
Type: Posts; User: Norm
It looks like this assignment is way past your current java knowledge. There are lots of basic java coding rules that are a problem for you.
For example:
replacing a statement that reads data...
The println() method does NOT read data. The code in post#9 has the code in the readFile() method that will read the contents of the file and save it in the array. AFTER that method is done filling...
To get this code to work, you need to spend some time figuring out what it does so you can modify it to do what you want it to do.
One question is: Does the existing code read the data in the...
Posts merged.
Did you do what I suggested in post#8?
Have you tested the code that reads in the file to see that the numbers are getting into the 2D array?
The Arrays class's deepToString() method will format a 2D array for printing:...
The posted code does not compile without errors.
Please fix the errors and post new code
or post the error messages you are having problems with.
What does "isn't working" mean? How is the txt file supposed to be displayed?
Duplicate posts merged.
Do you have a specific question about the assignment and the problems you are having.