title: Parsing through a String Array inside a HashMap
body: <p>so basically, I'm trying to parse through each map entry of a HashMap while also reading each string value in the String array. I will then use each of those string values in the array as parameters for specific methods. Now, I know how to parse through each map entry, it's just the iterating through the string array in the map that's confusing me. Any advice?</p>
  
  <p>My code:</p>
  
  <pre><code>HashMap&lt;String,String[]&gt; roomSite = new HashMap&lt;String, String[]&gt;();
  
  Set set = roomSite.entrySet();
  
  Iterator&lt;Map.Entry&lt;String, String[]&gt;&gt; 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(Arrays.deepToString((String[]) mentry.getValue()));
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>key is: 0 &amp; Value is: [wall, d0, wall, wall]
  key is: 1 &amp; Value is: [d0, wall, d1, wall]
  key is: 2 &amp; Value is: [wall, wall, wall, d1]
  </code></pre>