| Share this post! | Vote this! |
|
This article teaches you how to use an enum in Java. Code examples help you to understand the enumeration syntax.
With Java 1.5 finally enum was arrived. You can simply define an enumeration using the enum keyword and the following syntax: more...
Step 1 - Java enum usage explained
Java enum explained
Prior
Java 1.5 there was no real enums in the language. It was able to
imitate the enum functionality but it was not type safe and there was no
namespace to make the code more readable.With Java 1.5 finally enum was arrived. You can simply define an enumeration using the enum keyword and the following syntax: more...




0 comments:
Post a Comment