title: How to iterate over a TreeMap?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/46898/how-do-i-iterate-over-each-entry-in-a-map">How do I iterate over each Entry in a Map?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to iterate over a <code>TreeMap</code>, and for all keys which have a particular value, I want them to be added to a new <code>TreeMap</code>. How can I do this?</p>