Android Array Concatenate concat(T[] first, T[] second)

Here you can find the source of concat(T[] first, T[] second)

Description

concat

Declaration

public static <T> T[] concat(T[] first, T[] second) 

Method Source Code

//package com.java2s;
import java.util.Arrays;

public class Main {
    public static <T> T[] concat(T[] first, T[] second) {
        T[] result = Arrays.copyOf(first, first.length + second.length);
        System.arraycopy(second, 0, result, first.length, second.length);
        return result;
    }/*from   w w  w.j a  va2 s.c o  m*/
}

Related

  1. arrayApend(byte[] prep, byte after)
  2. arrayComb(byte[] prep, byte[] after)
  3. concat(T[] a, T[] b)
  4. concatAll(T[] first, T[]... rest)
  5. concatenate(byte[]... bytes)
  6. concat(byte[] b1, byte[] b2)
  7. append(byte[] pck1, byte[] pck2)
  8. addBytes(byte[] src1, byte[] src2)