Created
March 29, 2015 23:07
-
-
Save domix/98767f14eb5d7ce0d1bb to your computer and use it in GitHub Desktop.
Demo1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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