Possible Duplicate:
How do I iterate over each Entry in a Map?
I want to iterate over a TreeMap, and for all keys which have a particular value, I want them to be added to a new TreeMap. How can I do this?
Possible Duplicate:
How do I iterate over each Entry in a Map?
I want to iterate over a TreeMap, and for all keys which have a particular value, I want them to be added to a new TreeMap. How can I do this?