0
What's wrong in this code below
public class Program{ public static void main(String [ ] args){ int [ ] [ ] myArr= {{1,2,3},{4,5,6}}; System.out.println(myArr[ ] [ ]); } }
3 Respuestas
+ 2
I think you should choose and specify the indexes in the array when you print if you mean to print specific number in the array. If you want to print all of the elements in the array you can do it with loop.
0
So this code can't print all the elements right... Thanks man i got it
0
You're welcome. Just try it with loops.