fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. int[][] array=
  4. {
  5. {1},
  6. {1, 2, 3},
  7. {1, 2, 3, 4, 5},
  8. {1, 2}
  9. };
  10.  
  11. for (int[] second : array) {
  12. for (int entry : second) {
  13. System.out.println(entry);
  14. }
  15. System.out.println();
  16. }
  17. }
  18. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
1

1
2
3

1
2
3
4
5

1
2