Here you can find the source of transferAllElementsFromListToQueue(final List
public static <Type> void transferAllElementsFromListToQueue(final List<Type> elements, Queue<Type> queue)
//package com.java2s; //License from project: LGPL import java.util.List; import java.util.Queue; public class Main { public static <Type> void transferAllElementsFromListToQueue(final List<Type> elements, Queue<Type> queue) { for (final Type element : elements) { queue.add(element);// w w w .j a v a2 s .c o m } } }