|
|
Browse by Tags
All Tags » Java 1.5 (RSS)
-
Download the example code.
I was asked to put together some teaching materials for a Data Structures class as the second part of their introduction to threading. I decided to go ahead and jump right in to the Java Concurrency API and needed a simple example to illustrate the concepts. I adapted this from an example in ...
-
Here is a simple example of the new enumeration features in Java 1.5. The Java compiler translates enumerations into regular classes that inherit from the Enum class. This means that you define enumerations the same way as you define classes, with the exception that you use the enum keyword instead of class.
Remeber, enumerations are Objects, ...
|
|
|