public LinkedList (Collection<? extends E> c)

Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.

Parameters:
c    the collection whose elements are to be placed into this list

Exceptions:
NullPointerException    if the specified collection is null