Java examples for java.util:Collection Creation
Create new Array Deque
//package com.java2s; import java.util.ArrayDeque; import java.util.Collection; public class Main { public static void main(String[] argv) { System.out.println(newArrayDeque()); }/*from ww w .j a v a 2 s . c o m*/ public static <E> ArrayDeque<E> newArrayDeque() { return new ArrayDeque<E>(); } public static <E> ArrayDeque<E> newArrayDeque( final Collection<? extends E> c) { return new ArrayDeque<E>(c); } public static <E> ArrayDeque<E> newArrayDeque(final int numElements) { return new ArrayDeque<E>(numElements); } }