Here you can find the source of merge(List
public static List<String> merge(List<String> first, List<String> second)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> merge(List<String> first, List<String> second) { ArrayList<String> result = new ArrayList<String>(first); result.addAll(second);/*from w ww . j a v a 2 s . c om*/ return result; } }