Java tutorial
//package com.java2s; import java.util.*; public class Main { /**** * LinkedList * @return */ public static <T> List<T> newLinkedList() { return new LinkedList<T>(); } /**** * LinkedList * @return */ public static <T> List<T> newLinkedList(Collection<T> collection) { return new LinkedList<T>(collection); } }