Java tutorial
//package com.java2s; public class Main { public static byte[] join(byte[] src, byte[] des) { byte[] result = new byte[src.length + des.length]; System.arraycopy(src, 0, result, 0, src.length); System.arraycopy(des, 0, result, src.length, des.length); return result; } }