title: ArrayList Limit to hold 10 Values
body: <p>I am using an <code>ArrayList</code> within my code which gets populated by a <code>EditText</code> field but I am wanting to limit the <code>ArrayList</code> so it can only hold 10 values. After 10 values have been added if another tries to get added I just need it to not add into the <code>Array</code>. Anyone got any ideas how to do that?</p>
  
  <pre><code>private static ArrayList&lt;String&gt; playerList = new ArrayList&lt;String&gt;();
  </code></pre>