D
Ich verstehe deine Frage nicht.
int[][][] array = {
/*0.*/ {/*0.*/ {1,2,3,4,}, /*1.*/ {1,2,3,4,}, /*2.*/ {1,2,3,4,}},
/*1.*/ {/*0.*/ {1,2,3,4,}, /*1.*/ {1,2,3,4,}, /*2.*/ {1,2,3,4,}},
/*2.*/ {/*0.*/ {1,2,3,4,}, /*1.*/ {1,2,3,4,}, /*2.*/ {1,2,3,4,}}};
firstDim = array.length; // 3
for ( int[][] a1 : array )
{
secondDim = a1.length; // 3, 3, 3
for ( int[] a2 : array )
{
thirdDim = a2.length; // 4, 4, 4, 4
}
}