Here you can find the source of mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge)
public static Object[] mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge)
//package com.java2s; public class Main { public static Object[] mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge) { System.arraycopy(a1, 0, merge, 0, a1.length); System.arraycopy(a2, 0, merge, a1.length, a2.length); return merge; }/*from ww w .j a va2 s . co m*/ }