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} }
1 Réponse
+ 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]);