title: Iterate over Map (Specifically TreeMap) in Java starting from a key-value pair
body: <p>I have a TreeMap, I wanted to iterate over it and print key-value pairs. But I dont want to start from the beginning, I want to start from a particular key-value pair.</p>
  
  <p>Basically I want to do this -</p>
  
  <pre><code>TreeMap&lt;String, String&gt; treeMap = new TreeMap&lt;String, String&gt;();
  //Populate it here
  treeMap.get("key1");
  //get the iterator to the treemap starting from the key1-value1 pair and iterate
  </code></pre>
  
  <p>I know how to do this if I want to iterate from start to end, but I dont find any answers to this.</p>