dcsimg

How do I get the set of values from an enumeration?

John Zukowski

If Suit is declared as an enum, named suit, then suit.values() will return an array of elements, one for each value in the enum set.