• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Iterator is better than Enumeration

 
Megha Jain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
You can refer to previous thread..
http://www.coderanch.com/t/202139/Performance/java/Enumeration-vs-Iterator
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic