Create a ListQueue containing all elements.
ListQueue
elements
The elements are added to the queue, as by addLast, in the order given by elements.iterator.
elements.iterator
All elements should be assignable to E.
E