Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}