doOnNext operator called every time when source Observable emits an item. It can be used for debugging purposes, applying some action to the emitted item, logging, etc...
Observable.range(1, 3)
.doOnNext(value -> System.out.println("before transform: " + value))
.map(value -&...