fork download
  1. import java.util.Arrays;
  2.  
  3. public class Main {
  4. // ForExercises
  5.  
  6. public static void main (String[] args) {
  7. int[][] array = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};
  8.  
  9. System.out.println(Arrays.toString(array[0]));
  10. System.out.println(Arrays.toString(array[1]));
  11. System.out.println(Arrays.toString(array[2]));
  12. System.out.println(Arrays.toString(array[3]));
  13. }
  14. }
Success #stdin #stdout 0.07s 52576KB
stdin
[1, 2, 3]
[4, 5, 6]
[7, 8, 9]
[10, 11, 12]
stdout
[1, 2, 3]
[4, 5, 6]
[7, 8, 9]
[10, 11, 12]