In the previous LinkedNodeCollection mini-labs, you implemented the add,
remove, and clear methods in the LinkedNodeCollection class and the add method in the
DoublyLinkedNodeCollection class. In this programming project
you will complete implementing those classes and rewrite the Bad News Bearer
program to use a LinkedNodeCollection.
toString, toArray,
containsAll, addAll, removeAll, retainAll,
and equals methods in LinkedNodeCollection.
Provide javadoc comments for them. You may wish to review the class
documentation for the Collection class before completing this
exercise. Update your test driver to test your new methods.DoublyLinkedNodeCollection,
and which need to be updated. Modify the DoublyLinkedNodeCollection
class so that it implements these methods.remove method
in DoublyLinkedNodeCollection. Implement the remove
and clear methods. Test your modified DoublyLinkedNodeCollection
class. add and remove methods in LinkedNodeCollectionIterator
and DoublyLinkedNodeCollectionIterator. Test the new methods.LinkedNodeCollection
class and the CircularLCIterator
class. (This class works like CircularLLIterator, except
it steps through a LinkedNodeCollection rather than a LinkedList
object.)LinkedNodeCollection
and DoublyLinkedNodeCollection add and remove
methods,
LinkedNodeCollection and DoublyLinkedNodeCollection
classes, and
Author: Alyce Brady abrady@kzoo.edu