Neat way of doing stuff with a List (and such) in Java
<p>In C# you can do some operations on a list, like this:</p>

<pre><code>return myList.Average(p =&gt; p.getValue());
</code></pre>

<p>This returns the average of all values. Is there something similar in Java? (That would save me the calculation of a sum and then division by the number of elements?)</p>

<p>Thanks!</p>
