• Post Reply Bookmark Topic Watch Topic
  • New Topic

Explanation of enum  RSS feed

 
Manaf Abdul
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain me (a 10th grade student) ...What exactly is an enum ? I am just interested to know about it. Please explain with an example.
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look in the Java™ Tutorials and the Java® Language Specification (=JLS). That oart of the JLS is esier to read than some parts. I think those two links should answer all your questions.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!