ArrayList elements not removed
<pre><code>import java.util.*;
class Drive{
    public static void main(String[] args) {
        ArrayList&lt;String&gt; lstStr = new ArrayList&lt;String&gt;();
        lstStr.add("A");
        lstStr.add("R");
        lstStr.add("C");
        String str;
        for(Iterator&lt;String&gt; it = lstStr.iterator(); it.hasNext();) {   
            str = it.next();
            if(str.equals("R")) {
                lstStr.remove(it);
            }
        }
        for(Iterator&lt;String&gt; it = lstStr.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }
    }
}
</code></pre>

<p>Couldn't understand what's happening, why R is not being removed from ArrayList?</p>
