Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Linked-List Implementation

This section presents a queue implementation which makes use of the singly-linked list data structure, LinkedList, that is defined in Chapter gif. Program gif introduces the QueueAsLinkedList class. The QueueAsLinkedList extends the AbstractContainer class and implements the Queue interface.

   program6704
Program: QueueAsLinkedList fields.




next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.