(String first, String second) -> Integer.compare(first.length(), second.length())
Just 2 parts:
A lambda expression is simply:
a block of code,
together with the specification of any variables that must be passed to the code.
http://www.drdobbs.com/jvm/lambda-expressions-in-java-8/240166764
http://java.dzone.com/articles/why-we-need-lambda-expressions
http://java.dzone.com/articles/why-we-need-lambda-expressions-0
http://stackoverflow.com/questions/3259322/why-use-lambda-functions
No comments:
Post a Comment