Queue in Java using LinkedList - FIFO
by rajesh[ Edit ] 2009-12-30 16:31:37
Implementing a Queue in Java using LinkedList
An Example for building First in First out(FIFO) queue.
    LinkedList queue = new LinkedList();
   Â
    // To add an object in queue
    queue.add(object);
   Â
    // Retrieving and removing first object from queue
    Object o = queue.removeFirst();
   Â