Here you can find the source of join(List
Parameter | Description |
---|---|
list1 | a parameter |
list2 | a parameter |
public static List<String> join(List<String> list1, List<String> list2)
//package com.java2s; // Splunk Inc. licenses this file import java.util.ArrayList; import java.util.List; public class Main { /**/*w w w.java 2 s. co m*/ * @param list1 * @param list2 * @return a list containing list1 and list2 */ public static List<String> join(List<String> list1, List<String> list2) { List<String> join = new ArrayList<String>(list1); join.addAll(list2); return join; } }