Here you can find the source of fromArray(T[] objects)
public static <T> ArrayList<T> fromArray(T[] objects)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.Collections; public class Main { public static <T> ArrayList<T> fromArray(T[] objects) { ArrayList<T> arrayList = new ArrayList<T>(); Collections.addAll(arrayList, objects); return arrayList; }/*from w ww .j a v a2 s . com*/ }