Created
October 21, 2020 19:17
-
-
Save FrankGrimm/45add80340e0dc08347b4bc24548c93e 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
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