title: Java - printing textual representation of objects in sets
body: <p>I have a <code>Map</code> with keys as <code>String</code> and values as a set of objects.</p>
  
  <p>How would I go about printing out the object associated with each individual key and its attributes?</p>
  
  <p>I have something like this so far:</p>
  
  <pre><code>for (String eachKey : aMap.keySet()) {
      System.out.println(eachKey + " :" + aMap.get(eachKey));
  }
  </code></pre>
  
  <p>This just prints out the key with the object identity.</p>