Add object to list with strings
<p>I have the following definition which is fine</p>

<pre><code>private List&lt;Map&lt;String, String&gt;&gt; list = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
</code></pre>

<p>But now I need to extend it that the first string should be also type list.
I have tried with the following code,add new list and change the first string to hold
the listPrents but I got some error.</p>

<pre><code>private Map&lt;String, String&gt; listParents = new HashMap&lt;String, String&gt;();
private List&lt;Map&lt;listParents, String&gt;&gt; list = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
</code></pre>

<p>How can I do something like that ,the lists types can be changed .</p>

<p>Thanks,
Fedor</p>
