Is there any LINQ like implementation in java? [duplicate]
Just like C# provides me LINQ, is there any package or pre-processor in Java?
Simply put, no. Check out Jon Skeet's answer.
Uhm... yes! See https://github.com/nicholas22/jpropel-light
// create alphabet char[]
new Character('A').to(new Character('Z')).unbox();
// join two arrays and put in list
alphabet.join(numerics).toList();
// select distinct j* names, using LINQ-style statements
new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct();
精彩评论