Skip to content

Instantly share code, notes, and snippets.

@CoderJava
Created October 1, 2018 23:45
Show Gist options
  • Select an option

  • Save CoderJava/ad6a654dbd4a997717f6883b2ccec955 to your computer and use it in GitHub Desktop.

Select an option

Save CoderJava/ad6a654dbd4a997717f6883b2ccec955 to your computer and use it in GitHub Desktop.
Transforming Operator Map RxJava
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