This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
The DefaultMutableTreeNode object has a few methods which return an Enumeration. But how do you use the Enumeration which you get?
Do you do this?
Enumeration enumer = myDefaultMutableTreeNode.getChildren();
I have a feeling that will not work.
True, but some older classes still return them (ZipFile is one of them), and you do need to know how to handle them. Also, Iterator and Enumeration are very very similar; the only reason Iterator is preferred is the (optional) remove method, and the shorter method names.