Java tutorial
//package com.java2s; public class Main { public static byte[] append(byte[] org, byte[] to) { byte[] newByte = new byte[org.length + to.length]; System.arraycopy(org, 0, newByte, 0, org.length); System.arraycopy(to, 0, newByte, org.length, to.length); return newByte; } }