How to populate a list of generic lists in Java?
<p>Observe the following code:</p>

<pre><code>private List&lt;List&lt;Place&gt;&gt; m_grid = constructGrid(10000);

private static List&lt;List&lt;Place&gt;&gt; constructGrid(int size) {
  List&lt;List&lt;Place&gt;&gt; res = new ArrayList&lt;List&lt;Place&gt;&gt;(size);
  for (int i = 0; i &lt; size; ++i) {
    res.add(null);
  }
  return res;
}
</code></pre>

<p>It is dull. Is there a prettier way to do the same thing? A one liner using some kind of a standard library?</p>

<p>Thanks.</p>

<p><strong>EDIT</strong></p>

<p>The list must be mutable. Hence, <code>Collections.nCopies</code> does not fit the bill.</p>
