Java Array Concatenate concatArrays(short[] arr1, short[] arr2)

Here you can find the source of concatArrays(short[] arr1, short[] arr2)

Description

concat Arrays

License

Open Source License

Declaration

private static short[] concatArrays(short[] arr1, short[] arr2) 

Method Source Code

//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
}

Related

  1. concatArrays(byte[][] arrays)
  2. concatArrays(double[] d1, double[] d2)
  3. concatArrays(final byte[] arr1, final byte[] arr2)
  4. concatArrays(final char[] first, final char[]... rest)
  5. concatArrays(Object[] ar1, Object[] ar2)
  6. concatArrays(String[] A, String[] B)
  7. concatArrays(String[] array, String[] arrayToBeConcat)
  8. concatArrays(T[] first, T[] second)
  9. concatArrays(T[] first, T[] second)