Java tutorial
//package com.java2s; public class Main { public static byte[] arrayComb(byte[] prep, byte[] after) { byte[] result = new byte[prep.length + after.length]; System.arraycopy(prep, 0, result, 0, prep.length); System.arraycopy(after, 0, result, prep.length, after.length); return result; } public static byte[] arraycopy(byte[] from, byte[] to) { System.arraycopy(from, 0, to, 0, from.length); return to; } }