hi,
String[][][] arr =
{
{ { "a", "b" , "c"}, { "d", "e", null } },
{ {"x"}, null },
{{"y"}},
{ { "z","p"}, {} }
};
here array arr is an array of four different arrays
array 1(0th element of arr)
{ { "a", "b" , "c"}, { "d", "e", null }} is again an array of two arrays
array 2 (1st element) is array of two arrays
array 3 (2nd element) is array of one array
array 4 (3rd element) is array of two arrays
when you say arr[0][1][2] first arr[0] is evaluated which returns the array { { "a", "b" , "c"}, { "d", "e", null }}
now arr[0][1] means the the first element of this array
i.e. { "d", "e", null } this is again an array
arr[0][1][2] means second element of the above array
that is null.
it seems complicated but
in
java if you think multidimensional array as an array of arrays
then it is more clear becuase every array in the main array(every element of the array ) can have different dimensions.
veena