2 // Generated on Tue Feb 1 16:11:29 PST 2000
3 // Simple anonymous array, of primitive types.
7 static void foo (int [][] x
) {
8 for (int i
= 0; i
< x
.length
; i
++)
10 for (int j
= 0; j
< x
[i
].length
; j
++)
11 System
.out
.print (x
[i
][j
]);
16 public static void main (String
[] arg
)
18 foo (new int[][] {{2,3},{5,7}});
19 System
.out
.println ((new int [][] {{11,13},{17,19}}).length
);
20 System
.out
.println ((new int [][] {{23,29},{31,37}})[0][1]);