iterate through enumerable java code example
Example 1: java iterate enum
for (EnumClass value : EnumClass.values()) {
System.out.println(value);
}
Example 2: iterate through an enum java
for (enumerator s : enumerator.values()) {
// do abc
}