1- int a1[][] = {{1, 2, 3}, {4, 5, 6}};
2- int a2[][] = {{1, 2}, {3}, {4, 5, 6}};
3- System.out.println("The contents of the array1 are:");
4- for (int i = 0; i < a1.length; i++) {
5- for (int j = 0; j < a1[i].length; j++) {
6- System.out.print("\t" + a1[i][j] + "\t");
7- }
8- System.out.println();
9- }
10- System.out.println("The contents of the array2 are:");
11- for (int i = 0; i < a2.length; i++) {
12- for (int j = 0; j < a2[i].length; j++) {
13- System.out.print("\t" + a2[i][j] + "\t");
14- }
15- System.out.println();
16- continue;
17- }