title: How to fetch first 10 key value HashMap in Java
body: <p>i have hashmap like this:</p>
  
  <pre><code>{apple, 20}, {nanas,18}, {anggur, 12},...........
  </code></pre>
  
  <p>my hashmap already sorting descending by value. and i want to get 10 element from first element hashmap. </p>
  
  <p>can anyone help me ?</p>