package week5;
public class Fun1 {
public static void main(String[] args) {
int a[]={1,2,3,4,5};
int b[]=a;
int i;
for(i=0;i<b.length;i++){
b[i]++;
}
for(i=0;i<a.length;i++){
System.out.println(a[i]);
}
}
}
输出结果为 2 3 4 5 6