fork download
  1. class Main
  2. {
  3.  
  4. public static void main(String args[])
  5. {
  6.  
  7. int myArray[][] = { {10,20} ,{30,40} , {50,60} };
  8. int myAnotherArray[][] = { {,} ,{,} , {,} };
  9.  
  10. System.out.println(myAnotherArray.length);
  11. for (int i = 0; i < myAnotherArray.length; i++)
  12. System.out.println(myAnotherArray[i].length);
  13. }
  14. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
3
0
0
0