class JSample9_1{ public static void main(String args[]){ int num[][] = {{1, 3, 5}, {2, 4, 6}}; System.out.print("多次元配列の長さは"); System.out.println(num.length); System.out.print("インデックス0の要素の長さは"); System.out.println(num[0].length); System.out.print("インデックス1の要素の長さは"); System.out.println(num[1].length); } }