Java tutorial
//package com.java2s; import java.util.Collection; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; public class Main { public static <E> Queue<E> getConcurrentLinkedQueue() { return new ConcurrentLinkedQueue<E>(); } public static <E> Queue<E> getConcurrentLinkedQueue(Collection<? extends E> collection) { return new ConcurrentLinkedQueue<E>(collection); } }