If this long workshop hasn't left you feeling threadbare, expand your skills with the following activities:

  • If you are comfortable with HTML, create your own home page that includes the Revolve applet and six of your own favorite websites. Use the applet along with other graphics and text on the page.

  • Add a button to the FindPrimes application that can stop the thread while the sequence of prime numbers is still being calculated.

To see Java programs that implement these activities, visit the book's website at

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.