JAVA/J2EE Training: Java Programming Tutorial Enum (Enumeration)

1. Introduction to Enumeration (enum) (JDK 1.5)

1.1 Example: Scissor-Paper-Stone

Suppose that we are writing a Scissor-Paper-Stone game. We could use three arbitrary integers (e.g., 0, 1, 2; (more…)

This content is restricted to site members. If you are an existing user, please log in. New users may register here.

Existing Users Log In
 Remember Me