Java List Create createList(T... array)

Here you can find the source of createList(T... array)

Description

create List

License

Creative Commons License

Declaration

public static <T> ArrayList<T> createList(T... array) 

Method Source Code

//package com.java2s;
// The license under which this software is released can be accessed at:

import java.util.*;

public class Main {
    public static <T> ArrayList<T> createList(T... array) {
        ArrayList<T> list = new ArrayList<T>();
        for (T t : array) {
            list.add(t);//from   w  ww. ja  va2s. co m
        }
        return list;
    }
}

Related

  1. createList(Object... objs)
  2. createList(Object[] values)
  3. createList(String s)
  4. createList(T value, int n)
  5. createList(T... _entries)
  6. createList(T... element)
  7. createList(T... items)
  8. createList(T... items)
  9. createList(T... objs)