title: Remove Item from ArrayList
body: <p>I have an <code>ArrayList</code> suppose <code>list</code>, and it has 8 items A-H and now I want to delete 1,3,5 position Item stored in int array from the <code>list</code> how can I do this.</p>
  
  <p>I am trying to do this with </p>
  
  <pre><code>ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
  list.add("A");
  list.add("B");
  list.add("C");
  list.add("D");
  list.add("E");
  list.add("F");
  list.add("G");
  list.add("H");
  
  int i[] = {1,3,5};
  
  for (int j = 0; j &lt; i.length; j++) {
      list.remove(i[j]);
  }
  </code></pre>
  
  <p>But after first item deleted positioned of array is changed and in the next iterate it deletes wrong element or give exception. </p>