Created
January 18, 2017 21:35
-
-
Save jwkidd3/f386f8341b70c8710aa88e8082979bc2 to your computer and use it in GitHub Desktop.
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<Integer> values = Observable.range(0,10); | |
Subscription oddNumbers = values | |
.filter(v -> v % 2 == 0) | |
.subscribe( | |
v -> System.out.println(v), | |
e -> System.out.println("Error: " + e), | |
() -> System.out.println("Completed") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment