/* 2次元配列の初期化の例 */ class Foo { public static void main (String[] args) { int[][] a = {{10, 20, 30}, {40, 50, 60}}; for (int i=0; i<2; i++) { for (int j=0; j<3; j++) { System.out.println("a["+i+"]["+j+"] = "+a[i][j]); } } } }