What is the most elegant way to map one list to another in Java?
<p>I am new in Java so please be patient.</p>

<p>It is common to map (convert) lists to lists. Some languages have a <code>map</code> method, some (C#) <code>Select</code>. How is this done with Java? Is a <code>for</code> loop the only option?</p>

<p>I expect to be able to do something like this:</p>

<pre><code>List&lt;Customer&gt; customers = new ArrayList&lt;Customer&gt;();
...
List&lt;CustomerDto&gt; dtos = customers.convert(new Converter(){
  public convert(c) {
    return new CustomerDto();
  }
})
</code></pre>

<p>I have missed something? Please give me a starting point.</p>
