title: LinkedList: remove an object
body: <p>Is this a valid way to find and remove item from a LinkedList in Java using a for each loop, is it possible that inconsistency may arise:</p>
  
  <pre><code>for(ObjectType ob : obList) {
    if(ob.getId() == id) {
      obList.remove(ob);
      break;
     }
  }
  </code></pre>