Owl Sams Teach Yourself Java 2 in 21 Days

Book CoverWelcome to the World Wide Web site for the book Teach Yourself Java 2 in 21 Days by Laura Lemay and Rogers Cadenhead. This site is frequently updated in response to reader mail.

Important Note: This book was retitled Sams' Teach Yourself Java 2 in 21 Days shortly after the first printing. The reason for the change was Sun's last-minute decision to give JDK 1.2 the official name ``Java 2 SDK (version 1.2).''

The following options are available:

The links below enable you to get the source code and resource files associated with each chapter. You also can find the most current corrections, clarifications, and reader-submitted questions about that material. Be sure to check it out when you have questions -- the answer may already be there.

Right off the bat, readers should be aware of two important issues:

Use these links for information related to a specific day in the book:

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

16

17

18

19

20

21

A

B

C

D

E

   

Most recent additions to this site:

  • The online tutorial Using the Java Development Kit on a Windows System has been updated to cover Windows 2000, NT, and XP in addition to other Windows systems (July 27, 2002)

  • A new Day 4 answer to a reader question about the loss of precision when casting integers to floating-point values. (Aug. 3, 2000)

  • A new Day 13 tutorial, Handling Mouse Clicks, on using Java 2 techniques to handle mouse events in the Spots and Lines applets. (July 23, 2000)

  • A Day 17 correction to a page introducing output streams (March 23, 2000)

  • How can I use images in an application? A Day 21 question (March 17, 2000)

  • A Day 2 correction to how the Jabberwock application is described(March 16, 2000)

  • When to use getCodeBase() and getDocumentBase() -- a Day 10 question (March 16, 2000)

  • How to select and deselect check boxes -- a Day 11 question (July 15, 1999)