Java Array to List newList(T... list)

Here you can find the source of newList(T... list)

Description

new List

License

Apache License

Declaration

public static <T> ArrayList<T> newList(T... list) 

Method Source Code

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

import java.util.ArrayList;
import java.util.Arrays;

public class Main {
    public static <T> ArrayList<T> newList(T... list) {
        return new ArrayList<T>(Arrays.asList(list));
    }//from ww  w.j  a  v  a 2 s  .  c  om
}

Related

  1. newList(final T... elements)
  2. newList(int... sizes)
  3. newList(T... elements)
  4. newList(T... elements)
  5. newList(T... items)
  6. newList(T... objects)
  7. newList(T... objs)
  8. newList(T... ts)
  9. newList(T... values)