Here you can find the source of getArrayDeque()
public static <E> Deque<E> getArrayDeque()
//package com.java2s; import java.util.ArrayDeque; import java.util.Collection; import java.util.Deque; public class Main { public static <E> Deque<E> getArrayDeque() { return new ArrayDeque<E>(); }/*w ww . j av a2s .co m*/ public static <E> Deque<E> getArrayDeque(Collection<? extends E> collection) { return new ArrayDeque<E>(collection); } public static <E> Deque<E> getArrayDeque(int initialCapacity) { return new ArrayDeque<E>(initialCapacity); } }