Over a million developers have joined DZone.

LINQ for Java

DZone's Guide to

LINQ for Java

· ·
Free Resource

 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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}