Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 - Part 3
Date: Thu Nov 15 2001 1:22 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: final results

Maybe I'm missing something, but why all this use of ObjectIterator? If you have a List, you call it's .iterator() or .listIterator() method and it returns an Iterator. Why do we need a seperate class to convert a Vector into an Iterator?

Also, the whole point of using the Iterator interface is to hide the underlying implementation of Iterator, since we really don't care how the Iterator works, just that it works. So why does every method accept ObjectIterator's instead of Iterator's?
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
final results      White, David      Thu Nov 15 2001 9:04 am       
Re: final results      Goodman, Brian J.      Thu Nov 15 2001 10:25 am      New
Re: final results      Bortz, Andrew S.      Thu Nov 15 2001 1:22 pm       
Re: final results      Goodman, Brian J.      Thu Nov 15 2001 3:17 pm       
Re: final results      Danish, Matt R.      Fri Nov 16 2001 10:30 pm       
Re: final results      Goodman, Brian J.      Sat Nov 17 2001 1:16 am       

Back to previous screen