Java List Concatenate concat(List... lists)

Here you can find the source of concat(List... lists)

Description

concat

License

Apache License

Declaration

static String[] concat(List<String>... lists) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.List;
import java.util.ArrayList;

public class Main {
    static String[] concat(List<String>... lists) {
        List<String> c = new ArrayList<String>();
        for (List<String> l : lists) {
            c.addAll(l);//  ww w.  j a va  2s.  c  om
        }
        return c.toArray(new String[c.size()]);
    }
}

Related

  1. concat(List items, String quotation, String separation)
  2. concat(List items, String separator)
  3. concat(List strings, String separator)
  4. concat(List tokens)
  5. concat(List words)
  6. concat(List lista, String sep, StringBuilder destino)
  7. concat(List a, List b)
  8. concat(List collection1, List collection2)
  9. concat(List l1, List l2)