Created
August 17, 2018 17:00
-
-
Save anitaa1990/fdf0b8cd826e7a67343bac23f53d95f6 to your computer and use it in GitHub Desktop.
This file contains 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
Observable.fromArray(new String[]{"A", "B", "C", "D", "E", "F"}) | |
.subscribe(new Observer<String>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onNext(String string) { | |
System.out.println("onNext: " + string); | |
} | |
@Override | |
public void onError(Throwable e) { | |
System.out.println("onError: " + e.getMessage()); | |
} | |
@Override | |
public void onComplete() { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment