Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C++ Type Enum

 
Rick Gentry
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Java have anything like the C++ enum besides making a struct array?
 
Joe Pluta
Ranch Hand
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java 1.5, due for release later this year, is going to have a number of new features, including typesafe enums. Generic collections are another big enhancement. For more information, you can start here.
Joe
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And until that, take a look at http://developer.java.sun.com/developer/Books/shiftintojava/page1.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic