Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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.
    ...
  2. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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...
  3. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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?
  4. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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.
  5. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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...
  6. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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?
  7. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    OK. Which method are you working on and what problems are you having designing and coding it?
  8. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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...
  9. Thread: Word Search

    by Norm
    Replies
    12
    Views
    1,747

    Re: Word Search

    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...
Results 1 to 9 of 9