//regarding this code, why does it print "null"?
public class StringArrayTest
{
public static void main(
String args[])
{
String[][][] arr =
{
{ { "a", "b" , "c"}, { "d", "e", null } },
{ {"x"}, null },
{{"y"}},
{ { "z","p"}, {} }
};
System.out.println(arr[0][1][2]);
}
}
/*
the explanation of jq+ after I did the
test says:
arr[0][1][2] => [0] = { { "a", "b" , "c"}, { "d", "e", null } }, [1] = { "d", "e", null } and [3] = null.
So it will print 'null'.
But I dont get why.
*/