Java LinkedList Create newLinkedList(Collection c)

Here you can find the source of newLinkedList(Collection c)

Description

new Linked List

License

Open Source License

Declaration

public static <T> LinkedList<T> newLinkedList(Collection<T> c) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static <T> LinkedList<T> newLinkedList() {
        return new LinkedList<T>();
    }/*w w w.java 2 s.com*/

    public static <T> LinkedList<T> newLinkedList(Collection<T> c) {
        return new LinkedList<T>(c);
    }
}

Related

  1. createLinkedList(E... array)
  2. createLinkedList(Iterable c)
  3. crossProductInternal(int i, Object[][] arrays, Object[] work, LinkedList ret)
  4. newLinkedList(Collection initData)
  5. newLinkedList(E... elements)
  6. newLinkedList(T... elements)
  7. prependAll(List ofList, LinkedList toList)