Java String Join joinedList(T first, T... others)

Here you can find the source of joinedList(T first, T... others)

Description

joined List

License

Apache License

Declaration

public static <T> List<T> joinedList(T first, T... others) 

Method Source Code

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

import java.util.*;

public class Main {
    public static <T> List<T> joinedList(T first, T... others) {
        ArrayList<T> list = new ArrayList<T>();
        list.add(first);/*from  w  w  w  .j  a v  a 2s .  c  o  m*/
        Collections.addAll(list, others);
        return list;
    }
}

Related

  1. join(String... paths)
  2. join(String... xs)
  3. join(T delimiter, List list)
  4. join2(String connector, String... strs)
  5. joinColumns(Iterable columns)
  6. joinIterable(Iterable element, String separator)
  7. joinMap(Map map)
  8. joinMap(String keyValueSeperator, String recordSeperator, Map map)
  9. JoinMaps(Map into, Map other)