Adding one list to another list in java?
<p>I have below java code.</p>

<pre><code>List&lt;SomePojo&gt; list = new ArrayList&lt;SomePojo&gt;();
//add 100 SomePojo objects to list.
</code></pre>

<p>Now list has 100 objects.</p>

<p>If i create one more instance as below:</p>

<pre><code>List&lt;SomePojo&gt; anotherList = new ArrayList&lt;SomePojo&gt;();
anotherList .addAll(list);
</code></pre>

<p>Thanks!</p>
