java streams vs LINQ

Tomasz Kowalczewski tomasz.kowalczewski at gmail.com
Tue Mar 26 15:15:14 PDT 2013


It's a nice comparison but still few examples could have be written more
clearly and Challenge 11 is perfectly doable in Java:

 friends = stream(friends)
                    .sorted(Comparators.comparing(String::length,
Integer::compare).thenComparing(String::compareTo))
                    .toArray(String[]::new);




On Tue, Mar 26, 2013 at 10:15 PM, Ali Ebrahimi
<ali.ebrahimi1781 at gmail.com>wrote:

> Hi all,
> http://blog.informatech.cr/2013/03/24/java-streams-preview-vs-net-linq/
>
>


-- 
Tomasz Kowalczewski


More information about the lambda-dev mailing list