1.System.arraycopy()方法
public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
:将指定源数组中的数组从指定位置开始复制到目标数组的指定位置。
例子:
package untl;
public class MyObject {
public static void main(String[] args) {
int arr[]={
1,2,3,4,5,6,7,8};
int brr[]=new int [10];
System.arraycopy(arr,1,brr,3,5);
for (int a: brr