Java List from Array convertArrayToList(T[] array)

Here you can find the source of convertArrayToList(T[] array)

Description

convert Array To List

License

Open Source License

Declaration

public static <T> List<T> convertArrayToList(T[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static <T> List<T> convertArrayToList(T[] array) {
        return Arrays.asList(array);
    }//from w  w  w  .j a v a  2s .c o m
}

Related

  1. convertArrayToList(Object[] source)
  2. convertArrayToList(String[] array)
  3. convertArrayToList(String[] array)
  4. convertArrayToList(String[] arrayStr)
  5. convertArrayToList(T... objects)
  6. convertArrayToList(T[] arrayOfObjects)
  7. copyToList(T... items)
  8. copyToList(T[] array)