File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes diff betn iterator, enumeration and listIterator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "diff betn iterator, enumeration and listIterator" Watch "diff betn iterator, enumeration and listIterator" New topic
Author

diff betn iterator, enumeration and listIterator

Manish Jaju
Greenhorn

Joined: Jul 21, 2004
Posts: 24
What is difference between iterator, enumeration and listIterator.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
"Enumeration" was a lousy name and is found only on the "legacy" collections. "Iterator" is roughly the same thing with a more appropriate name. I'd never looked at ListIterator before, but it extends Iterator (so it "is" an Iterator) and adds backwards movement and a current position concept. Kool.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: diff betn iterator, enumeration and listIterator