Neat way of doing stuff with a List (and such) in Java -
in c# can operations on list, this:
return mylist.average(p => p.getvalue()); this returns average of values. there similar in java? (that save me calculation of sum , division number of elements?)
thanks!
lambdaj provides functionality this:
double totalage = sumfrom(persons).getage(); //divide size average
Comments
Post a Comment