0

3d arry in java

how can I call one number from 3d arry for example int[][][] test = { { {1, -2, 3}, {2, 3, 4} }, { {-4, -5, 6, 9}, {1}, {2, 3} }

13th Sep 2018, 2:31 PM
saif
saif - avatar
1 ответ
+ 3
Just put the index of an element you want to get in multiple seperate square braces like System.out.println(test[0][0][0]); or System.out.println(test[1][0][3]);
13th Sep 2018, 3:17 PM
Tim Thuma
Tim Thuma - avatar