Created
May 12, 2015 22:10
-
-
Save jpetitto/d9ffed9843a5e9bfa358 to your computer and use it in GitHub Desktop.
Anonymous Classes vs Lambdas
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
Observable.just("Hello, world!") | |
.subscribe(new Action1<String>() { | |
@Override | |
public void call(String s) { | |
System.out.println(s); | |
} | |
}); | |
Observable.just("Hello, world!") | |
.subscribe(s -> System.out.println(s)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment