Java tutorial
//package com.java2s; import java.util.Arrays; public class Main { public static <T> T[] concatArrays(T[] a, T[] b) { T[] result = Arrays.copyOf(a, a.length + b.length); System.arraycopy(b, 0, result, a.length, b.length); return result; } }