Java List from Array asList(T... array)

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

Description

as List

License

Apache License

Declaration

public static <T> List<T> asList(T... array) 

Method Source Code


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

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

import java.util.List;

public class Main {
    public static <T> List<T> asList(T... array) {
        return new ArrayList<T>(Arrays.asList(array));
    }//w  w w.  j  av a2 s .  c  om
}

Related

  1. asList(T... a)
  2. asList(T... args)
  3. asList(T... args)
  4. asList(T... array)
  5. asList(T... array)
  6. asList(T... data)
  7. asList(T... elements)
  8. asList(T... items)
  9. asList(T... values)