CSC 313: Data Structures in Java

Autumn 2002

Inidividual Assignment 4

Object Collections and Iterators

Due Wednesday October 23 before 11:30pm

In this course, we study the SimpleCollection class and the SimpleIterator class. The SimpleCollection class holds a collection of Objects and SimpleIterator provides an iterator for it. In this assignment you will document and expand the functionality of both of these classes.

For the SimpleCollection class, you will add the following functionalities:

For the SimpleIterator class, you will implement one additional method:

Within the main method of the SimpleIterator class, provide additional test code that demonstrates that all of the methods in your classes work correctly. Make sure you fully document your classes according to the standards of the text and javadoc.

Submission

Before the due date and time, you should submit the following files through the submission Web page: