Here you can find the source of concatArrays(short[] arr1, short[] arr2)
private static short[] concatArrays(short[] arr1, short[] arr2)
//package com.java2s; //License from project: Open Source License public class Main { private static short[] concatArrays(short[] arr1, short[] arr2) { int len1 = arr1.length; int len2 = arr2.length; short[] retval = new short[len1 + len2]; System.arraycopy(arr1, 0, retval, 0, len1); System.arraycopy(arr2, 0, retval, len1, len2); return retval; }//from ww w.ja v a2 s. c o m }