标签:copy array end div tostring arrays void -- hello
import java.util.Arrays; public class HellowWorld { public static void main(String[] argv ) { int[] arr= new int[]{1,6,6,9,3,4,21,26,30,35}; int[] arr1=new int[arr.length]; //数组的复制(原数组,从原数组那个下标开始拷贝,新数组,在新数组的那个下标去拷贝,要拷贝的元素个数) System.arraycopy(arr, 0, arr1, 0, arr.length); System.out.println(Arrays.toString(arr1)); }//endmain }//endclass
标签:copy array end div tostring arrays void -- hello
原文地址:https://www.cnblogs.com/xuwangqi/p/11038271.html