title: How do you create an <ArrayList> local variable?
body: <p>I am trying to figure out how to create an ArrayList as a local variable. I think I have it figured out, is the following code correct? Thanks.</p>
  
  <pre><code>public void setExample(){
  ArrayList&lt;String&gt; example = new ArrayList&lt;String&gt;();      //local variable? 
  }
  </code></pre>