I suggest you start over. Write the code for the method one small step at a time instead
of trying to write it all at once. If there are compiler errors, fix them before writing any more code.
...
Type: Posts; User: Norm
I suggest you start over. Write the code for the method one small step at a time instead
of trying to write it all at once. If there are compiler errors, fix them before writing any more code.
...
What is line 52 supposed to do? To store data into a slot in an array, the code needs to provide indexes for each dimension. The []s should not be empty.
What is line 63 supposed to do? The file...
Where are the source statements with the errors? Lines 52 and 63
What is the fill() method supposed to do with what it reads from the file?
Take it one step at a time. First write nested loops to go through the 2 dim array and print out its contents by row and column.
The characters in a String can be accessed a couple of ways: all at once or one by one. See the String class for methods to used.
There are two parts to the search:
first find a match of the...
That sounds like you need a loop to compare against the characters in the array.
Is only the first letter used? What characters in the array are to be checked?
When a match is found, what next?
OK. Which method are you working on and what problems are you having designing and coding it?
Does each method search the array from a given row, column location in a fixed direction for a match with the characters passed to it in a String? There are 4 methods, one for each direction.
Up...
Can you explain what that means?
Is one dimension the line/row in the file
and the other dimension the characters in the line?
That is the normal format (or content) of a text file.
Is there...