int[] a={1111110,12,1212,4465,123,1212,20,3011111,40,50,60,1211313};
int[] b={120,1,1111245,5,45,4,5,45,4,5,45,45,456,56,3,4,1125,6,7,8,9,0};
// int[] a={1,142,13,1,5}; //用这个就角标越界???
// int[] b={12,12,13,1,45}; //用这个ab就角标越界上面就好使怎么回事??
System.arraycopy(a, 0, b, 5, 5);
for (int i : b) {
System.out.println(i+" "); |
|