title: Why and when to use TreeMap
body: <p>Could someone tell me when and why to use <strong>TREEMAP</strong>.I went through <a href="http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html" rel="noreferrer">This link</a>
  but didn't find my answer.</p>
  
  <p>As Per my thinking we use treemap to get the data sort according to your key and the same we can achieve by other ways also.</p>