Java tutorial
//package com.java2s; public class Main { public static byte[] concatenateBytes(byte[] iv, byte[] cipher) { byte[] res = new byte[iv.length + cipher.length]; System.arraycopy(iv, 0, res, 0, iv.length); System.arraycopy(cipher, 0, res, iv.length, cipher.length); return res; } }