Skip to content

Instantly share code, notes, and snippets.

@anitaa1990
Last active August 17, 2018 17:37
Show Gist options
  • Save anitaa1990/846ca3d25a7f714a5e7a43b1ced36c94 to your computer and use it in GitHub Desktop.
Save anitaa1990/846ca3d25a7f714a5e7a43b1ced36c94 to your computer and use it in GitHub Desktop.
Observable.just(new String[]{"A", "B", "C", "D", "E", "F"})
.subscribe(new Observer<String[]>() {
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onNext(String[] strings) {
System.out.println("onNext: " + Arrays.toString(strings));
}
@Override
public void onError(Throwable e) {
}
@Override
public void onComplete() {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment