fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. int[][][] x=
  13. {
  14. {
  15. { 1,2,3 },
  16. {4,5,6}
  17. },
  18. {
  19. {7,8 },
  20. { 9 }
  21. }
  22. };
  23.  
  24. for(int[][] inner1:x) {
  25. for(int inner2[]:inner1) {
  26. for(int i:inner2) {
  27. System.out.print(i);
  28. }
  29. }
  30. }
  31. }
  32. }
Success #stdin #stdout 0.05s 320576KB
stdin
Standard input is empty
stdout
123456789