Skip to content

Instantly share code, notes, and snippets.

@domix
Created March 29, 2015 23:07
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 domix/98767f14eb5d7ce0d1bb to your computer and use it in GitHub Desktop.
Save domix/98767f14eb5d7ce0d1bb to your computer and use it in GitHub Desktop.
Demo1
// Using Java as usual
Runnable r = new Runnable() {
@Override
public void run() {
System.out.println("Hello #JaverosMX!");
}
};
r.run();
// Using Java 8 Lambda Expressions
Runnable r = () -> System.out.println("Hello #JaverosMX!");
r.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment