LessonB - 5 Inconsistent
Opened this issue · 0 comments
AnonymousWalker commented
I find the comment block saying
In this example we have one Observable and we perform two actions on the data it emits.
Lets build two Strings by concatenating some integers.
but the code has the third string named mStringC and also performs an action on it.
mStringC = "";
Observable.range(1, 6)
.doOnNext(integer -> mStringA += integer)
.doOnNext(integer -> {
if (integer % 2 == 0) {
mStringB += integer;
}
})
.doOnNext(integer -> mStringC += integer)
.subscribe(integer -> mStringC += integer);
The solution does not have this variable nor its action