See if this helps.
View a multi-dimensional array as an array of arrays.
//1-d array , basically list of elements. view this as a single row with multiple columns.
String[] a = {"col1","col2"};
//2-d (array of arrays)-
String[][] i = new String[3][2]; //this will be 3 rows of 2 columns each (matrix)
//valid subscripts --> (0,0),(0,1),(1,0),(1,1),(2,0),(2,1)
i = new String[][]{a,a,a}; //I'm assigning 1-d array for each of the elements.
//3-d array of 2-D array
String[][][] j = new String[4][3][2];//4 arrays, each with 3 rows and 2 columns
j = new String[][][]{i,i,i,i};//assigning 2-d arrays for each of the elements
//4-d Array of 3-D array
String[][][][] k = new String[5][4][3][2];//is an array of 5 arrays each with 4 arrays, where each of those 4 arrays in turn have 3 arrays of 2 elements each.
k = new String[][][][]{ j,j,j,j,j};//assigning 3-d arrays for each elements
accessing an element:
k[2][0][0][0][0] --> "col1"
k[2][0][0][0][1] --> "col2"
and so on....
[ May 03, 2007: Message edited by: M Krishnan ]