Over a million developers have joined DZone.

LINQ for Java

·

 This library allows you to write the follwing valid Java code:

// create alphabet char[]
char[] alphabet = new Character('A').to(new Character('Z')).unbox();
char[] numerics = new Character('1').to(new Character('9')).unbox();

// join two arrays and put in list 
List allowed = alphabet.join(numerics).box().toList(); 

// select distinct j* names, using LINQ-style statements
new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct(); 

Download at: https://github.com/nicholas22/jpropel-light
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}