title: Converting lists of one element type to a list of another type
body: <p>I'm writing an adapter framework where I need to convert a list of objects from one class to another. I can iterate through the source list to do this as in </p>
  
  <p><a href="https://stackoverflow.com/questions/18524/java-best-way-of-converting-listinteger-to-liststring">Java: Best way of converting List&lt;Integer&gt; to List&lt;String&gt;</a></p>
  
  <p>However, I'm wondering if there is a way to do this on the fly when the target list is being iterated, so I don't have to iterate through the list twice.</p>