public class Access2DArray {
public static void main(String[] args) {
int[][] a = { { 5, 2, 9 }, { 4, 6, 8, 10, 11, 5, 2, 9, 5, 2, 9, 5, 2, 9 } };
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a[i].length; j++) {
System.out.print(a[i][j] + " ");
}
System.out.println();
}
}
}
public static void main(String[] args) {
int[][] a = { { 5, 2, 9 }, { 4, 6, 8, 10, 11, 5, 2, 9, 5, 2, 9, 5, 2, 9 } };
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a[i].length; j++) {
System.out.print(a[i][j] + " ");
}
System.out.println();
}
}
}