title: ArrayList remove element with index 0 and 1
body: <p>I would like to remove the elements in an ArrayList with the index 0 and 1. But it does not work and I do not know way. </p>
  
  <p>The code looks as follows</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.Collection;
  import java.util.Iterator;
  
  
  public class Test{
  
      public static void main(String[] args){
          Collection c = new ArrayList();
  
          c.add("A");
          c.add("B");
          c.add("C");
  
          for(Iterator i = c.iterator(); i.hasNext();)
              System.out.println(i.next());
  
          System.out.println("");
          c.remove(1);
          c.remove(0);
  
          for(Iterator i = c.iterator(); i.hasNext();)
              System.out.println(i.next());
  
  
  
      }   
  }
  </code></pre>
  
  <p>The output is</p>
  
  <pre><code>A
  B
  C
  
  A
  B
  C
  </code></pre>
  
  <p>But the output should be</p>
  
  <pre><code>A
  B
  C
  
  C
  </code></pre>