public class Test02 { public static void main(String[] args) { int[]infoZhang = new int[]{170,60}; int[]infoLi=infoZhang; infoLi[0]=180; infoLi[1]=70; System.out.println(infoZhang[0]+" "+infoZhang[1]); } }
public class Test02 { public static void main(String[] args) { int[]infoZhang = new int[]{170,60}; int[]infoLi=infoZhang; infoLi[0]=180; infoLi[1]=70; System.out.println(infoZhang[0]+" "+infoZhang[1]); } }