Current Forum: Homework 5 - Parts 1 and 2 |
Date: Mon Nov 5 2001 11:30 pm |
Author: Chen, Richard <richardc@andrew.cmu.edu> |
Subject: Re: part2: 1. typo 2. writeup error |
|
|
Questions: 1. To further expand on my question#2 from the last post in this thread, how does having ObjectIterator.java lend any difference or advantage versus merely having a Vector and not having to write ObjectIterator.java? I ask probably because I fail to see the "Iterators" concept inside ObjectIterator.java. Note that www-2.cs.cmu.edu/afs/andrew/course/15/211/www/hw5/pub/doc/ObjectIterator.html does not offer me enough hints to answer this question by myself. 2. Why was the following left unimplemented: /** Unimplemented. */ public void remove() {} Was it because the remove() might not be needed, or was it purposeful to give the students work? I ask so that I can ascertain the degree of need by which I need to implement remove(), if I follow much of the given code which leads my algo to be similar to the TA's solution's algo. |
|