ArrayList of ArrayList
<p>I have an <code>ArrayList</code> of <code>ArrayList</code>-s.
How can I initialize the field with given number of rows and number of columns?</p>

<pre>

`ArrayList&lsaquo;ArrayList&lsaquo;E&rsaquo;&rsaquo; field;
    public Field(int rows, int cols) {
        field = new ArrayList&lsaquo;ArrayList&lsaquo;E&rsaquo;&rsaquo;(rows);
        for(ArrayList&lsaquo;E&rsaquo; t : field)
            t = new ArrayList&lsaquo;E&rsaquo;(cols);
    }`
</pre>
