package XQ; public class YiWeiShuZu { public static void main(String[] args) { int [][]A = {new int []{1,2,3},new int []{4,5}}; System.out.println("二位数组长度为"+A.length); for (int B=0;B<A.length;B++) { for (int C=0;C<A[B].length;C++) { System.out.print(A[B][C]+" "); } System.out.println(); } } }