Java tutorial
//package com.java2s; import android.annotation.TargetApi; import android.os.Build; import java.util.Arrays; public class Main { @TargetApi(Build.VERSION_CODES.GINGERBREAD) public static <T> T[] concatenate(T[] first, T[] second) { T[] result = Arrays.copyOf(first, first.length + second.length); System.arraycopy(second, 0, result, first.length, second.length); return result; } }