int[][] a = new int[10][20]; for (int i=0; i<10; i++) { // 配列の添字は0から始まるのでiは0で初期化 for (int j=0; j<20; j++) { a[i][j]=0; } }