Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}