int[][] t= new int[][]{{1},{2}};
int d[][]= new int[][]{{1},{2}};
System.out.println(t[0][0]);
System.out.println(d[1][0]);
int[][] b = {{1,2},{3,4},{5,6}};
int c[][]={{0,1},{2,3}};
System.out.println(b[0][0]);
System.out.println(c[1][0]);
int[][] e=new int[4][];//第二个括号里面不填数子,不限制长度
e[1]= new int[]{1,2,3};
e[2]= new int[]{1};
System.out.println(e[1][2]);
System.out.println(e[2][0]);
int f[][]=new int[4][];
f[1]= new int[]{1,2,3};
System.out.println(f[1][1]);
输出结果: