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...
Type: Posts; User: Norm
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...
I can't see the error messages from here, so you need to post their full text if you want help with them.
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));
...
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.
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
What have you tried?
Can you post an example of what would be in the columns and rows of the array?