java.lang.IndexOutOfBoundsException?
<p>I am trying to remove an object from an ArrayList, My code is</p>

<pre><code>ArrayList myArrayList=new ArrayList();

for(int index=0;index&lt;20;index++){
    myArrayList.add(index);
}

for(int removeIndex=0;removeIndex&lt;=mArrayList;removeIndex++){
        myArrayList.remove(removeIndex);
}
</code></pre>

<p>It is giving a <code>java.lang.IndexOutOfBoundsException</code>. How do I remove a number of objects from <code>ArrayList</code>?.</p>
