Java Array Join join(String[]... values)

Here you can find the source of join(String[]... values)

Description

join

License

Open Source License

Declaration

public static String[] join(String[]... values) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static String[] join(String[]... values) {
        List<String> list = new ArrayList<String>();

        for (String[] strings : values)
            Collections.addAll(list, strings);

        return list.toArray(new String[list.size()]);
    }//from www .  j ava  2 s. com
}

Related

  1. join(String[] strs, String glue, int start, int end)
  2. join(String[] tokens, String delimiter)
  3. join(String[] tokens, String separator)
  4. join(String[] x)
  5. join(String[]... arrays)
  6. join(T[] a, T[] b)
  7. join(T[] arr1, T[] arr2)
  8. join(T[] array, String join)
  9. join(T[] array, String separator)