title: How do I clear an ArrayList?
body: <p>I have the following code in <code>ThisClass</code>:</p>
  
  <pre><code>static ArrayList&lt;MyClass&gt; classlist; 
  </code></pre>
  
  <p>If I call:</p>
  
  <pre><code>ThisClass.classlist = new ArrayList&lt;MyClass&gt;();
  ThisClass.classlist.add(object);
  </code></pre>
  
  <p>And then call this line again:</p>
  
  <pre><code>ThisClass.classlist = new ArrayList&lt;MyClass&gt;();
  </code></pre>
  
  <p>Will it reset the <code>ThisClass.classlist</code> list, i.e. the classlist list will no longer contain object?</p>