Challenge

A quick challenge on multithreading to test what you have learned in this chapter.

We'll cover the following

Problem

Modify the following Observable chain so that each print statement is executed on a separate thread.

Observable.just(1, 2, 3)
       .doOnNext(value -> System.out.println(Thread.currentThread().getName() + " : " + value));

Get hands-on with 1200+ tech skills courses.