Created
October 1, 2018 23:45
-
-
Save CoderJava/ad6a654dbd4a997717f6883b2ccec955 to your computer and use it in GitHub Desktop.
Transforming Operator Map 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 RxTransformingOperatorMap { | |
| public static void main(String[] args) { | |
| Observable.range(1, 10) | |
| .map(integer -> integer + " merupakan Bilangan " + (integer % 2 == 0 ? "Genap" : "Ganjil")) | |
| .subscribe(System.out::println); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment