上机实验2
实验2
package 数组引用与元素;
public class SHUZU {
public static void main (String args[]) {
int [] a = {100,200,300};
System.out.println(a.length);
System.out.println(a);
int b[][]= {{1},{1,1},{1,2,1},{1,3,3,1},{1,4,6,4,1}};
System.out.println(b.length);
System.out.println(b[4][2]);
b[4]=a;
System.out.println(b[4][2]);
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)