Here you can find the source of arraycopy(T[] a)
public static <T> T[] arraycopy(T[] a)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { public static <T> T[] arraycopy(T[] a) { return Arrays.copyOf(a, a.length); }//w w w. j a v a 2s . c o m }