title: Java, Using Iterator to search an ArrayList and delete matching objects
body: <p>Basically, the user submits a String which the Iterator searches an ArrayList for. When found the Iterator will delete the object containing the String.</p>
  
  <p>Because each of these objects contain two Strings, I am finding trouble writing these lines as one.</p>
  
  <pre><code>Friend current = it.next();
  String currently = current.getFriendCaption();
  </code></pre>
  
  <p>Thanks for any help!</p>