title: Printing a HashMap that contains of String and List of Objects
body: <p>How can I print a HashMap that containts of String and List of Objects? </p>
  
  <pre><code>HashMap&lt;String, List&lt;Object&gt;&gt; Map = new HashMap&lt;String, List&lt;Object&gt;&gt;();
  </code></pre>
  
  <p>Each object has a name and a key value so I need to get something like:</p>
  
  <pre><code>StringFirst = [ firstObject 15, second object 31, thirdobject 16]
  StringSecond = [ fourthObject 15, fifthObject 31, sixthObject 16]
  
      public static class Graph {
  
      public class Edge extends Graph {
          String edgeName;
          int time;
  
          Edge(String edgeName, int time){
              this.edgeName = edgeName;
              this.time = time;
          }
  
          public void Out(){
              System.out.println(this.edgeName);
              System.out.println(this.time);
          }
      }
  </code></pre>