package it.cast.java.util;
import java.util.Arrays;
public class copy {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] n={1,2,3,4,5,6};
int[] m=new int[7];
System.arraycopy(n, 0, m, 0, 6);
//源数组;起始位置;目标数组;目标数组起始位置;复制数量(未复制则写0)
System.out.println(Arrays.toString(m));
}
}
Array.toString(m)什么意思?
谁给解释一下
|
|