fork(2) 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. int x, y;
  11. int[] second;
  12.  
  13. for (x = 0; x < array.length; ++x) {
  14. second = array[x];
  15. for (y = 0; y < second.length; ++y) {
  16. System.out.println(x + "," + y + ": " + second[y]);
  17. }
  18. System.out.println();
  19. }
  20. }
  21. }
Success #stdin #stdout 0.06s 380160KB
stdin
Standard input is empty
stdout
0,0: 1

1,0: 1
1,1: 2
1,2: 3

2,0: 1
2,1: 2
2,2: 3
2,3: 4
2,4: 5

3,0: 1
3,1: 2