Enum Iterate over an enum in Java .values() You can call the values() method on your enum. for (Direction dir : Direction.values()) { // do what you want }