Skip to content

Instantly share code, notes, and snippets.

@loicdescotte
Created February 19, 2013 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loicdescotte/4989006 to your computer and use it in GitHub Desktop.
Save loicdescotte/4989006 to your computer and use it in GitHub Desktop.
Java 8 lamdba test
import java.util.Arrays;
public class Lambda {
public static void main (String[] args){
Arrays.asList("aaa", "bbb", "ccc", "abb").stream()
.filter((String w) -> w.startsWith("a"))
.forEach(w -> System.out.println(w));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment