Skip to content

Instantly share code, notes, and snippets.

@FrankGrimm
Created October 21, 2020 19:17
Show Gist options
  • Save FrankGrimm/45add80340e0dc08347b4bc24548c93e to your computer and use it in GitHub Desktop.
Save FrankGrimm/45add80340e0dc08347b4bc24548c93e to your computer and use it in GitHub Desktop.
package rxtest;
import io.reactivex.Observable;
public class Main {
private void test1() {
Observable.range(1, 10).filter(i -> i % 2 == 0).subscribe(System.out::println, Throwable::printStackTrace);
}
public void run(String[] args) {
test1();
}
public static void main(String[] args) {
(new Main()).run(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment