title: Cannot remove element from an Array List
body: <p>Some background: I am new to Java and am taking a basic java class.  I am currently on the final project for the class and completed everything except for this last bit of code.  For some reason, I am having the toughest time deleting an element from an array list.  Here is the code I am working on:</p>
  
  <pre><code>public static void delete(String bookID) {
      for (book eachElement : catalog) {
          if (eachElement.getBookID().equals(bookID)) {
              catalog.remove(eachElement);
              return;
          }
      }
  }
  </code></pre>
  
  <p>code executes, no run time errors but it won't delete anything.
  also, I know everything works prior to the remove statement because I have another method that computes calculations using the same exact for and if statement with a select bookID string.</p>