title: loop through ConcurrentHashMap of ConcurrentHashMaps
body: <p>I have constructed a series of nested <code>ConcurrentHashMap</code>s initially with</p>
  
  <pre><code>private final ConcurrentHashMap&lt;String, Object&gt; allInOne = 
      new ConcurrentHashMap&lt;String, Object&gt;()
  </code></pre>
  
  <p>and subsequently with</p>
  
  <pre><code>ConcurrentHashMap&lt;String, Object&gt; accountMap = 
      (ConcurrentHashMap&lt;String, Object&gt;)allInOne.get(account);
  accountMap.put("subAccounts", new ConcurrentHashMap&lt;String, Object&gt;());
  ConcurrentHashMap&lt;String, Object&gt; subAccountMap = 
      (ConcurrentHashMap&lt;String, Object&gt;)accountMap.get(subAccount);
  subAccountMap.put("subAccountData", new ConcurrentHashMap&lt;String, Object&gt;());
  </code></pre>
  
  <p>I want to loop through <code>subAccountMap</code>, so I can grab specific values from <code>subAccountData</code>.</p>
  
  <p>I've tried all of the returned <code>Enumeration</code>s and <code>Set</code>s from the <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentHashMap.html" rel="nofollow noreferrer">documentation</a>, but I can't make it work because I'm still too new to Java to figure it out.  Please show me how.</p>
  
  <p>(I know what I'm doing is bad practice as many great stackers have shown me <a href="https://stackoverflow.com/questions/20318655/new-concurrenthashmap-of-new-concurrenthashmap">here</a> and <a href="https://stackoverflow.com/questions/20318655/new-concurrenthashmap-of-new-concurrenthashmap">here</a>, but all I'm trying to do is quickly get a working prototype and will clean up the code once finished)</p>