Here you can find the source of getArrayQueue()
public static <E> Queue<E> getArrayQueue()
//package com.java2s; import java.util.ArrayDeque; import java.util.Collection; import java.util.Queue; public class Main { public static <E> Queue<E> getArrayQueue() { return new ArrayDeque<E>(); }/*from w w w . j a va 2 s . c o m*/ public static <E> Queue<E> getArrayQueue(Collection<? extends E> collection) { return new ArrayDeque<E>(collection); } public static <E> Queue<E> getArrayQueue(int initialCapacity) { return new ArrayDeque<E>(initialCapacity); } }