title: display entryset of hashmap according to value
body: <p>I have this method here that gets an object from a JList. The object would then be a string  that matches certain values in a hashmap. There are multiple values, for example.</p>
  
  <pre><code> Course1 - John
   Course2 - John
   Course3 - Mary
   Course4 - Mary
  </code></pre>
  
  <p>are there any ways to loop through a hashmap and look for certain value, then place both key &amp; value into a string that can then be added to a list model?</p>