Look through the Map doc for a method that "returns a set view of the keys contained in this map." Then you can get an iterator on the set and work through the keys one at a time. Does that do what you need?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
posted 13 years ago
I wish I was able to get that onto my head right away.. but I would have preferred some code instead, showing the same.