public class copyA{
public static void main(String args[]){
int myArray[]={1,2,3,4,5,6,7,8,9,0};
  int anotherArray[]={4,3,2,1};
System.arraycopy(anotherArray,0,myArray,0,anotherArray.length);
for(int i : myArray){
System.out.println(myArray[i]);//最后结果输出 5,1,2,3,6,7,8,9,0,4  为什么出现这种排列,这样写有没有意义?
                                                                 改为System.out.println(i);正常输出。4,3,2,1,5,6,7,8,9,0
}
}
}