Java tutorial
//package com.java2s; import java.util.ArrayDeque; import java.util.Queue; public class Main { /** * Creates a {@link java.util.Queue} of the given size using Glide's preferred implementation. */ public static <T> Queue<T> createQueue(int size) { return new ArrayDeque<>(size); } }