Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.ArrayDeque;

import java.util.Collection;

public class Main {

    public static <E> ArrayDeque<E> getArrayDeque() {
        return new ArrayDeque<E>();
    }

    public static <E> ArrayDeque<E> getArrayDeque(Collection<? extends E> collection) {
        return new ArrayDeque<E>(collection);
    }

    public static <E> ArrayDeque<E> getArrayDeque(int initialCapacity) {
        return new ArrayDeque<E>(initialCapacity);
    }
}