title: What is the equivalent method in Java to map in haskell or select in C#?
body: <p>Is there any built-in function in Java similar either to the map function in Haskell or Schema or to the Select extensor method in C#?
  I just want to write this kind of code in a shorter way:</p>
  
  <pre><code>List&lt;String&gt; names = new ArrayList&lt;String&gt;();
  foreach (User element : getUsers()) {
     names.add(element.getName());
  };
  return names; 
  </code></pre>
  
  <p>a shorter way (in C#)</p>
  
  <pre><code>List&lt;String&gt; names = getUsers().Select(x =&gt; x.getName()).ToList();
  </code></pre>
  
  <p>I also need a way of pass function as parameter in a "friendly" way.</p>