Here you can find the source of concatArrays(Object[] ar1, Object[] ar2)
public static Object[] concatArrays(Object[] ar1, Object[] ar2)
//package com.java2s; //License from project: LGPL import java.util.ArrayList; import java.util.List; public class Main { public static Object[] concatArrays(Object[] ar1, Object[] ar2) { List<Object> thelist = new ArrayList<Object>(); for (Object o : ar1) thelist.add(o);//from w w w . j a v a 2 s . c o m for (Object o : ar2) thelist.add(o); return thelist.toArray(); } }