Here you can find the source of clone(Object[] src, Object[] trg)
public static Object[] clone(Object[] src, Object[] trg)
//package com.java2s; //License from project: LGPL public class Main { public static Object[] clone(Object[] src, Object[] trg) { for (int i = 0; i < src.length; i++) { trg[i] = src[i];//from ww w . j a v a 2s . c om } return trg; } }