二维数组举例(1) public class Test { public static void main(String args[]) { int a[][] = {{1,2},{3,4,5,6},{7,8,9}}; for(int i=0;ia.length;i++){ for(int j=0;ja[i].length;j++){ System.out.print (a[+i+][+j+] = +a[i][j]+ ); } System.out.println(); } } } 二维数组举例(2) public class Test { public static void main(String args[]) { String[][] s ; s = new String[3][]; s[0] = new String[2]; s[1] = new String[3]; s[2] = new String[2]; for(int i = 0;is.length;i++){ for(int j = 0;js[i].length;j++){ s[i][j] = new String
原创力文档

文档评论(0)