title: Remove objects from an ArrayList based on a given criteria
body: <p>I would like to remove an element from an <code>ArrayList</code> in Java if it meets a certain criteria.</p>
  
  <p>ie:</p>
  
  <pre><code>for (Pulse p : pulseArray) {
      if (p.getCurrent() == null) {
          pulseArray.remove(p);
      }
  }
  </code></pre>
  
  <p>I can understand why this does not work, but what is a good way to do this?</p>