Skip to content

Instantly share code, notes, and snippets.

@shadowfacts
Created July 17, 2015 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shadowfacts/f907ea85fef9ca1e950b to your computer and use it in GitHub Desktop.
Save shadowfacts/f907ea85fef9ca1e950b to your computer and use it in GitHub Desktop.
Java 8 lambda example
Runnable thingy = new Runnable() {
public void run() {
System.out.println("Annonymous class");
}
}
somethingElse(thingy);
somethingElse(() -> {
System.out.println("Lambdas!");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment