jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Why Iterator is better than Enumeration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why Iterator is better than Enumeration" Watch "Why Iterator is better than Enumeration" New topic

Why Iterator is better than Enumeration

Megha Jain
Ranch Hand

Joined: Sep 12, 2005
Posts: 30
i was reading one book......... in one example on Enumeration , it was written that as Enumeration is not good for new code........ use Iterator.
Both of them work in same manner........ so can anyone tell me why ?
Vijay Dogra

Joined: Sep 16, 2004
Posts: 22
You can refer to previous thread..
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"Vijay" we have told you multiple times to change your display name to meet the JavaRanch naming policy. If you don't change it to be your real first and last names, I will have to suspend your account.

Hi Megha, I think I am going to move this to the Java In General (Beginner) forum because your question isn't really about J2ME Mobile Applications.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link: http://aspose.com/file-tools
subject: Why Iterator is better than Enumeration
It's not a secret anymore!