예제코드 public class Plant { enum LifeCycle { ANNUAL, PERNNIAL, BIENNIAL} final String name; final LifeCycle lifeCycle; public Plant(String name, LifeCycle lifeCycle) { this.name = name; this.lifeCycle = lifeCycle; } @Override public String toString() { return name; } } ordianl 인덱싱 Set[] plantsByLifeCycle = (Set[]) new Set[LifeCycle.values().length]; for (int i = 0 ; i < plantsByLifeCycle.length ; ..