There is also an old interface called java.util.Enumeration. Generally you shouldn't use this anymore, unless you find some other code that forces you to use it. This is completely different from the enums that marc is pointing you towards - I don't know which thing you actually mean here.
"I'm not back." - Bill Harding, Twister
We don't have time for this. We've gotta save the moon! Or check this out: