This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one 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.