import com.bruceeckel.simpletest.*;
public class Arrarys{
Static Test monitor = new Test();
public static void main(String[] args){
int [] a1=(1,2,3,4,5);
int [] a2;
a2=a1;
for (int i=0;i<a2.length;i++)
a2[i]++;
for (int i=0;i>a1.length;i++)
System.out.println(
"a1["+i+"] ="+a1[i]);
mornitor.expect(new String[]{
"a1[0] = 2";
"a1[1] = 3";
"a1[2] = 4";
"a1[3] = 5";
"a1[4] = 6";
});
}
}
哪位高手帮忙看一下,标明红字体的那几行是什么意思,能不能给小弟回个帖子啊?
谢谢了!
[此贴子已经被作者于2006-3-22 17:26:47编辑过]