Creating a list from size
<p>I know this is easy and can be done with 2 lines of code, but i am curious to know if there exists any such function
i have a int which tell me the size of list and i need to create a list say</p>

<pre><code>List&lt;Integer&gt; intList;
</code></pre>

<p>i can create this by easily iterating through the size something like</p>

<pre><code>for(int i=1 ; i &lt;= size; i++)  // started with 1 as i want it from 1
{
  fill list
}
</code></pre>

<p>but i was just thinking as if there exists any such methods either in Collection API or Apache common
where i can pass the size to get a List with given size</p>

<p><strong>Edit</strong></p>

<p>May i was not able to put question in proper way, i want to get filled my list say 
if size=4 than i was thinking abt something</p>

<pre><code>Integer=1
Integer=2
Integer=3
Integer=4
</code></pre>

<p>and not an empty list with size 4</p>

<p>i know question do not make much sense, but still its better to clear your questions</p>
