Java Array Append arrayAppend(byte[] original, byte[] append)

Here you can find the source of arrayAppend(byte[] original, byte[] append)

Description

array Append

License

Open Source License

Declaration

public static byte[] arrayAppend(byte[] original, byte[] append) 

Method Source Code

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

public class Main {
    public static byte[] arrayAppend(byte[] original, byte[] append) {
        byte[] newArray = new byte[original.length + append.length];
        System.arraycopy(original, 0, newArray, 0, original.length);
        System.arraycopy(append, 0, newArray, original.length, append.length);
        return newArray;
    }// w w w  . java 2s . co m
}

Related

  1. appendArray(StringBuilder sb, int[] arr)
  2. appendArray(StringBuilder sb, T[] array, String delimiter)
  3. appendArrays(byte[] in1, byte[] in2)
  4. appendArrays(final byte[] firstArray, final byte[] secondArray)
  5. ARRAY_AddValueToArray(int new_value, int[] array)