• Post Reply Bookmark Topic Watch Topic
  • New Topic

enumerations?  RSS feed

 
Ugochukwu Onwordi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me out,why and when should I use enumerations?what are the benefits?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this article: Enums.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also an old interface called java.util.Enumeration. Generally you shouldn't use this anymore, unless you find some other code that forces you to use it. This is completely different from the enums that marc is pointing you towards - I don't know which thing you actually mean here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!