• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the use of Enumeration class?  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of enumeration class?.

 
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

java.util.Enumeration is an interface which allows you to generate a series of elements which you can then move through one by one. Check the javadocs for more infomation.

Also from the docs:
NOTE: The functionality of this interface is duplicated by the Iterator interface. In addition, Iterator adds an optional remove operation, and has shorter method names. New implementations should consider using Iterator in preference to Enumeration.


Hope that helps.

Sean
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!