Here you can find the source of join(long[] a, long[] b)
public static long[] join(long[] a, long[] b)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { public static long[] join(long[] a, long[] b) { long[] res = Arrays.copyOf(a, a.length + b.length); System.arraycopy(b, 0, res, a.length, b.length); return res; }/*from w w w .java 2 s .c o m*/ public static float[] join(float[] a, float[] b) { float[] res = Arrays.copyOf(a, a.length + b.length); System.arraycopy(b, 0, res, a.length, b.length); return res; } public static <T> T[] join(T[] a, T[] b) { T[] res = Arrays.copyOf(a, a.length + b.length); System.arraycopy(b, 0, res, a.length, b.length); return res; } }