Help with multidimensional arrays
I have a space deleminited text file I need to read in and store in a multi dimensional array...
ex.
toothpaste shampoo chocolate
book pencil
paper eraser book shampoo
I need to be able to read in the file and store it in a multi dim array. I read in each line and store
it in a string and then use the split function to parse it... how do I assign it to an array.
Any help would be appreciated.
[445 byte] By [
takasakia] at [2007-11-26 20:52:14]

> I have a space deleminited text file I need to read
> in and store in a multi dimensional array...
Why? Multi-D arrays are IMO often a sign of lacking OOD.
> I need to be able to read in the file and store it in
> a multi dim array. I read in each line and store
> it in a string and then use the split function to
> parse it... how do I assign it to an array.
String[][] whatever = new String[19][];
whatever[0] = line.split(...);