iterate through enum code example Example: iterate through an enum java for (enumerator s : enumerator.values()) { // do abc }