Getting ready

Read the previous recipe and implement its example.

The example of this recipe has been implemented using the Eclipse IDE. If you use Eclipse or another IDE, such as NetBeans, open it and create a new Java project.

Get Java 9 Concurrency Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.