Here you can find the source of newLinkedList(Collection
public static <T> LinkedList<T> newLinkedList(Collection<T> initData)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static <T> LinkedList<T> newLinkedList() { return new LinkedList<T>(); }//from w w w . j a v a2s . c om public static <T> LinkedList<T> newLinkedList(Collection<T> initData) { return new LinkedList<T>(initData); } public static <T> LinkedList<T> newLinkedList(T[] initData) { LinkedList<T> ret = new LinkedList<T>(); for (T t : initData) { ret.add(t); } return ret; } }