Java Array Concatenate concat(String[]... arrays)

Here you can find the source of concat(String[]... arrays)

Description

concat

License

Open Source License

Declaration

public static List<String> concat(String[]... arrays) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static List<String> concat(String[]... arrays) {
        List<String> result = new ArrayList<String>();
        for (String[] p : arrays) {
            for (String x : p) {
                result.add(x);//from w w w .  jav a  2  s . co m
            }
        }
        return result;
    }
}

Related

  1. concat(Object[] array)
  2. concat(Object[] first, Object second)
  3. concat(String[] array, String separator)
  4. concat(String[] parts)
  5. concat(String[] strs)
  6. concat(T val, T[] vals)
  7. concat(T[] a, T[] b)
  8. concat(T[] a, T[] b, T[] c, T[] d)
  9. concat(T[] arr0, @SuppressWarnings("unchecked") T[]... more)