I have been using RxJava 1 for some time, but I want to see RxJava 2. In RxJava 1, I can highlight each item in the list as follows:
List<String> list = ...
Observable.from(list)
.filter(str -> str.contains("Help")
.subscribe(...);
However, how can I achieve the same with RxJava2? I tried using the following, but I cannot miss the following:
Observable.fromArray(list)
// this now passes a list into the stream - there is no Observable::from
source
share