Here you can find the source of merge(T[] first, T[] second)
public static <T> List<T> merge(T[] first, T[] second)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { public static <T> List<T> merge(T[] first, T[] second) { ArrayList<T> merged = new ArrayList<>(); Collections.addAll(merged, first); Collections.addAll(merged, second); return merged; }/*from ww w . j a va 2 s. com*/ }