List of utility methods to do Queue Create
Queue | getArrayQueue() get Array Queue return new ArrayDeque<E>(); |
Queue | getQueue() get Queue return new LinkedList<E>(); |
Queue | toQueue(T[] array) Converts an array of T into a Queue of T. Queue<T> q = new LinkedList<T>(); for (T a : array) { q.add(a); return q; |