Here you can find the source of copyArray2(Object v, int len)
static <T> T[] copyArray2(Object v, int len)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { static <T> T[] copyArray2(Object v, int len) { return Arrays.copyOf((T[]) v, len); }// w w w . ja v a 2 s .co m }