Hallo, kann mir das jemand mit der Array Matrix erklären. ´
Das funktionert
int[][][][][][][]c = new int [8][8][8][8][8][8][8];
Das funktionert nicht
int[][][][][][][][]c = new int [8][8][8][8][8][8][8][8];
Ich muss aber eine 8 X 8 Matrix erstellen. Das ergebniss soll wie Unten abgebildet sein.
2 3 4 5 6 7 8 9
3 4 5 6 7 8 9 10
4 5 6 7 8 9 10 11
5 6 7 8 9 10 11 12
6 7 8 9 10 11 12 13
7 8 9 10 11 12 13 14
8 9 10 11 12 13 14 15
9 10 11 12 13 14 15 16
Das funktionert
int[][][][][][][]c = new int [8][8][8][8][8][8][8];
Das funktionert nicht
int[][][][][][][][]c = new int [8][8][8][8][8][8][8][8];
Ich muss aber eine 8 X 8 Matrix erstellen. Das ergebniss soll wie Unten abgebildet sein.
2 3 4 5 6 7 8 9
3 4 5 6 7 8 9 10
4 5 6 7 8 9 10 11
5 6 7 8 9 10 11 12
6 7 8 9 10 11 12 13
7 8 9 10 11 12 13 14
8 9 10 11 12 13 14 15
9 10 11 12 13 14 15 16