title: How can I store HashMap<String, ArrayList<String>> inside a list?
body: <p>My hashmap stores the string as key and arraylist as the values. Now, I need to embed this into a list. That is, it will be of the following form:</p>
  
  <pre><code>List&lt;HashMap&lt;String, ArrayList&lt;String&gt;&gt;&gt;
  </code></pre>
  
  <p>These are the declarations I have used:</p>
  
  <pre><code>Map&lt;String, ArrayList&lt;String&gt;&gt; map = new HashMap&lt;String, ArrayList&lt;String&gt;&gt;();
  ArrayList&lt;String&gt; arraylist = new ArrayList&lt;String&gt;();
  map.put(key,arraylist);
  List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>Can anyone help me which method and how to use in the list to proceed storing my map into it?</p>