Java List Join join(List list1, List list2)

Here you can find the source of join(List list1, List list2)

Description

join

License

Apache License

Parameter

Parameter Description
list1 a parameter
list2 a parameter

Return

a list containing list1 and list2

Declaration

public static List<String> join(List<String> list1, List<String> list2) 

Method Source Code


//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;
    }
}

Related

  1. join(List list, String delimiter)
  2. join(List list, String delimiter)
  3. join(List list, String sep)
  4. join(List list, String separator)
  5. join(List list, String separator)
  6. join(List list1, List list2)
  7. join(List lst, int start, int end)
  8. join(List lst, String separator)
  9. join(List members, boolean quote)