Search:

Type: Posts; User: Norm

Search: Search took 0.23 seconds.

  1. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    At line 29 the index to the array is past the end of the array. The array has less than 2 elements in it.
    There is no element at index 1. Remember array indexes range in value from 0 to the array...
  2. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    I can't see the error messages from here, so you need to post their full text if you want help with them.
  3. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    What is the current output of the program?

    For debugging, this method is useful for formatting two dim arrays:

    System.out.println("an ID "+ java.util.Arrays.deepToString(theArrayName));
    ...
  4. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    Can you post a sample of what the columns and rows of the array would contain?

    Also post the code you are having problems with.
  5. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    That looks like what would go in a one dim array. One column in each row that holds a name.
    Why do you think the code needs a multi-dim array?

    See post#2
  6. Replies
    11
    Views
    1,427

    Re: multidimentional array- names & gender.

    What have you tried?

    Can you post an example of what would be in the columns and rows of the array?
Results 1 to 6 of 6