Performance tips about list
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6961356/list-clear-vs-list-new-arraylistint">list.clear() vs list = new ArrayList&lt;int&gt;();</a>  </p>
</blockquote>



<p>I have a list:</p>

<pre><code>List&lt;Integer&gt; l1  = new ArrayList&lt;Integer&gt;();
</code></pre>

<p>and added some integer variables on that list. After some operation, I need to reuse that list, so I set it to <code>null</code>.</p>

<p>Which is better, setting to <code>null</code> or using <code>.clear()</code>? Or is there another way?</p>
