Java Array Concatenate arrayConcat(byte[] a, byte[] b)

Here you can find the source of arrayConcat(byte[] a, byte[] b)

Description

array Concat

License

Open Source License

Declaration

protected static byte[] arrayConcat(byte[] a, byte[] b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    protected static byte[] arrayConcat(byte[] a, byte[] b) {
        int lenA = a.length;
        int lenB = b.length;
        byte[] out = new byte[lenA + lenB];

        System.arraycopy(a, 0, out, 0, lenA);
        System.arraycopy(b, 0, out, lenA, lenB);

        return out;
    }// w w  w. j a v a  2s.co  m
}

Related

  1. arraycat(String[][] array1, String[][] array2)
  2. arrayConcat(final byte[] firstArray, final byte[] secondArray)
  3. arrayConcat(String[] first, String second)
  4. arrayConcat(T[] a, T[] b)
  5. arrayConcat(T[] first, T[] second)