Exercises

To extend your knowledge of the subjects covered today, try the following exercises:

  • Download a bean from Gamelan and make use of it in the BeanBox.

  • Add a TickTock bean—a bean that causes something to happen at set intervals—to the Juggler project. Experiment with the bean and see whether you can make it restart the juggling bean every 30 seconds.

Where applicable, exercise solutions are offered on the book's Web site at http://www.java21days.com.

Get Sams Teach Yourself Java 2 in 21 Days, 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.