title: Trying to remove an object with list iterator
body: <p>I'm trying to remove an object from a list using the list iterator. I've gone through the other solutions on the website and none have alleviated the error "Exception in thread "main" java.util.ConcurrentModificationException" </p>
  
  <p>here is my code that is not executing :</p>
  
  <pre><code>void PatronReturn(String bookName) {
  //       get to beginning
      while(listIterator.hasPrevious()) {
          listIterator.previous();
      }
      while(listIterator.hasNext()){
          Book b = listIterator.next();
      if (listIterator.next().getBookTitle().equals(bookName)) { 
          //listIterator.next();
          //listIterator.remove();
          books.remove(b);
          //listIterator.next(); //moves to next so iterator can remove previous ?
          //books.remove(listIterator.next());; // TODO see if this is correct
  
      }
      }
  </code></pre>