how to iterate through enum 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
}