Activities

If you don't object, you can extends your knowledge of this hour's topics with the following activities:

  • Create an AcousticModem class with a speed of 300 and its own connect() method.

  • Add a disconnect() method to one of the classes in the Modem project, deciding where it should go to support modem disconnection in cable, DSL, and acoustic modems.

To see Java programs that implement these activities, visit the book's website at http://www.java24hours.com.

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH 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.