Created
October 1, 2018 16:05
-
-
Save CoderJava/ba1b6a623df80a907b16606ef5cc43d4 to your computer and use it in GitHub Desktop.
Transforming Operator FlatMap RxJava
This file contains hidden or 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
| public class RxTransformingOperatorFlatMap { | |
| public static void main(String[] args) { | |
| String[] names = new String[]{"Yudi Setiawan", "Rosalia", "Harli Lopies", "Fitriani"}; | |
| Observable.just(names) | |
| .flatMap((Function<String[], ObservableSource<String>>) Observable::fromArray) | |
| .subscribe(System.out::println); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment