title: Add elements to a List while iterating over it. (Java)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/993025/java-adding-elements-to-a-collection-during-iteration">Java: adding elements to a collection during iteration</a>  </p>
  </blockquote>
  
  
  
  <p>My problem is that I want to expand a list with new elements while iterating over it and I want the iterator to continue with the elements that I just added.</p>
  
  <p>From my understanding the <code>ListIterator.add()</code> adds an element before the current element in the list, not after it. Is it possible to achieve this in some other way?</p>