title: How to "search" a HashMap then loop the result?
body: <p>So, Im coding some java. And want to search a HashMap then loop the result, this is my hashmap:</p>
  
  <pre><code>public HashMap&lt;String, String&gt; messages;
  </code></pre>
  
  <p>BUT! I don't want to loop alle keys, just some. Like searching a MySQL database.</p>
  
  <p>Sorry my english, im Norwegian.</p>