| |
| | Enums |
 | | This method is commonly used in combination with the for-each loop to iterate over the values of an enumerated type. |
 | | That includes natural enumerated types (like the planets, days of the week, and suits in a card deck) as well as other sets where you know all possible values at compile time, such as choices on a menu, rounding modes, command line flags, and the like. |
 | | It is not necessary that the set of constants in an enum type stay fixed for all time. |
| java.sun.com /j2se/1.5.0/docs/guide/language/enums.html (1310 words) |
|