int Max=10; int[][] a=new int[Max][];//定义了一个长度为Max个(一维数组)数组 for(int index=0;index a[i]=new [index][length]; }