Here you can find the source of toList(final E[] array)
@Deprecated public static <E> List<E> toList(final E[] array)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static <E> List<E> toList(final Enumeration<E> enumeration) { return Collections.list(enumeration); }// w ww . ja va 2s .c om @Deprecated public static <E> List<E> toList(final E[] array) { List<E> list = new ArrayList<E>(array.length); for (E e : array) { list.add(e); } return list; } @Deprecated public static List<Double> toList(final double[] array) { List<Double> list = new ArrayList<Double>(array.length); for (int i = 0; i < array.length; i++) { list.add(array[i]); } return list; } @Deprecated public static List<Integer> toList(final int[] array) { List<Integer> list = new ArrayList<Integer>(array.length); for (int i = 0; i < array.length; i++) { list.add(array[i]); } return list; } }