You can use a for loop to iterate through an Enum class, which will give you all the Enum members in the order they are defined.