title: I am trying to iterate through a Hashmap<LinkedList<String>, int[]>>. Is there a simpler way to do it than what I am doing?
body: <p>For a project, I have to create a map where the keys are <code>List</code>s of <code>String</code> and the value is two integers.  So, I made it like this:</p>
  
  <pre><code>private Map&lt;LinkedList&lt;String&gt;, int[]&gt; playerProfile;
  private List&lt;String&gt; previousChoices;
  </code></pre>
  
  <p>Then later I have to iterate through the map and write all the key-value combinations to a data file.  So I am setting up an iterator like this:</p>
  
  <pre><code>    Set&lt;Entry&lt;LinkedList&lt;String&gt;, int[]&gt;&gt; profileSet;
      profileSet = playerProfile.entrySet();
  
      //iterate through the Set
      List&lt;String&gt; curList; //current list of choices
      int[] curHeadTail; //current list of heads/tails
      Entry&lt;LinkedList&lt;String&gt;, int[]&gt; curEntry;
      Iterator&lt;Entry&lt;LinkedList&lt;String&gt;, int[]&gt;&gt; i =
      profileSet.iterator();
  </code></pre>
  
  <p>What I want to know is: is there a simpler way to do this that takes less lines of code?  And at one point I have triply-nested generics.  Is that too much?</p>