Queue is an interface that extends Collection in Java. It has all the features needed to support the FIFO architecture.
For a specific implementation, you can use LinkedList . LinkedList implements Deque , which in turn implements Queue . All of this is part of the java.util package.
For more information on the method with an example example, see FIFO-based Queue Implementation in Java .
Aniket Thakur Dec 11 '13 at 18:52 2013-12-11 18:52
source share