Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Created January 18, 2017 21:56
Show Gist options
  • Save jwkidd3/5537a369dd4b1d47f25476f9b311cdbc to your computer and use it in GitHub Desktop.
Save jwkidd3/5537a369dd4b1d47f25476f9b311cdbc to your computer and use it in GitHub Desktop.
Observable<Integer> values = Observable.range(0, 3);
values
.subscribe(new PrintSubscriber("Values"));
values
.count()
.subscribe(new PrintSubscriber("Count"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment