title: Get the last 3 values of a TreeMap
body: <p>I have a Date/String TreeMap and I want to loop through the N last entries.</p>
  
  <pre><code>TreeMap&lt;Date,String&gt; map = new TreeMap&lt;Date,String&gt;();
  map.put(new Date(2011,1,1), "32,1");
  map.put(new Date(2011,3,1), "35");
  map.put(new Date(2011,4,5), "38,9");
  map.put(new Date(2011,8,2), "57!!");
  </code></pre>
  
  <p>Then I'm lost. I've found this :</p>
  
  <pre><code>NavigableSet&lt;Date&gt; dates = donnees.descendingKeySet();
  </code></pre>
  
  <p>Then I don't know how to say something like :</p>
  
  <pre><code>for(key in dates and i ; i from 0 to N)
  { do something }
  </code></pre>
  
  <p>Any help ?</p>