Skip to content

Instantly share code, notes, and snippets.

@CoderJava
Created October 1, 2018 15:25
Show Gist options
  • Select an option

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

Select an option

Save CoderJava/803f651fc9cf629db8f978f5a5627a7f to your computer and use it in GitHub Desktop.
Operator just RxJava
public class RxOperatorJust {
public static void main(String[] args) {
String[] names = new String[]{"Yudi Setiawan", "Harli Lopies", "Rosalia"};
Observable.just(names)
.subscribe(strings -> System.out.println(Arrays.toString(strings)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment