title: Map inside map iteration
body: <p>I have the following nested <code>Map</code> defined in my class:</p>
  
  <pre><code>private Map&lt;String, Map&lt;String, String&gt;&gt; messagesByFactTypeAndCategory;
  
  public void setMessagesByFactTypeAndCategory(Map&lt;String, Map&lt;String, String&gt;&gt; messagesByFactTypeAndCategory) {
      this.messagesByFactTypeAndCategory = messagesByFactTypeAndCategory;
  }
  
  public Map&lt;String, Map&lt;String, String&gt;&gt; getMessagesByFactTypeAndCategory() {
      if (messagesByFactTypeAndCategory == null) {
          return Maps.newHashMap();
      }
      return messagesByFactTypeAndCategory;
  }
  </code></pre>
  
  <p>I'm trying but unable to traverse the <code>messagesByFactTypeAndCategory</code> map and get the data inside this to display in console.</p>
  
  <p>Below is the code that I tried so far:</p>
  
  <pre><code>Map&lt;String, Map&lt;String, String&gt;&gt; newMap = executionResult.getMessagesByFactTypeAndCategory();
  Set set = newMap.entrySet();
      Iterator iterator = set.iterator();
      while(iterator.hasNext()) {
          Map.Entry mentry = (Map.Entry)iterator.next();
          System.out.print("key is: "+ mentry.getKey() + " &amp; Value is: ");
          System.out.println(mentry.getValue());
      }
  </code></pre>
  
  <p>Any help is appreciated! </p>