Java Array Concatenate concatArray(byte[] old1, byte[] old2)

Here you can find the source of concatArray(byte[] old1, byte[] old2)

Description

concat Array

License

Apache License

Declaration

private static byte[] concatArray(byte[] old1, byte[] old2) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    private static byte[] concatArray(byte[] old1, byte[] old2) {
        byte[] newArray = new byte[old1.length + old2.length];
        System.arraycopy(old1, 0, newArray, 0, old1.length);
        System.arraycopy(old2, 0, newArray, old1.length, old2.length);
        return newArray;
    }//from  w w w.  j a va 2  s . c  om
}

Related

  1. concatAll(byte[]... args)
  2. concatAll(T[] first, T[]... rest)
  3. concatAll(T[] first, T[]... rest)
  4. concatAllArrays(byte[] data1, byte[]... remaining)
  5. concatArray(byte data1[], byte data2[])
  6. concatArray(int[] src, String separator)
  7. concatArray(Object... objects)
  8. concatArray(Object[] arr1, Object newValue)
  9. concatArray(String string, String[] words)