Java Array Join joinArrays(T[] a, T[] b)

Here you can find the source of joinArrays(T[] a, T[] b)

Description

join Arrays

License

Apache License

Declaration

public static <T> T[] joinArrays(T[] a, T[] b) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    public static <T> T[] joinArrays(T[] a, T[] b) {
        T[] res = Arrays.copyOf(a, a.length + b.length);
        System.arraycopy(b, 0, res, a.length, b.length);
        return res;
    }/*from   w ww  .j  a v  a 2  s. c o m*/
}

Related

  1. join(T[] array, String separator)
  2. join(T[] array, String separator)
  3. join(T[] array1, T[] array2)
  4. join(T[] first, T[] second)
  5. join(T[] objs, String splitString)
  6. joinAttributes(final String[] atts1, final String[] atts2)
  7. joinByComma(String[] values)
  8. joinByteArrays(final byte[] array1, byte[] array2)
  9. joinBytesArrays(byte[]... args)