title: How to remove integer from list?
body: <p>I need to remove integer from integer arraylist. I have no problem with strings and other objects. But when i removing, integer is treated as an index instead of object.</p>
  
  <pre><code>List&lt;Integer&gt; list = new ArrayList&lt;Integer&gt;();
  list.add(1);
  list.add(2);
  list.add(300);
  list.remove(300);
  </code></pre>
  
  <p>When I am trying to remove 300 i am getting: 
  <code>06-11 06:05:48.576: E/AndroidRuntime(856): java.lang.IndexOutOfBoundsException: Invalid index 300, size is 3</code></p>