### Java 2 Interactive Programmer's Workbook

## Source code for Chapter 03

Here is the source code to the exercises and examples for Chapter 03. When possible, we have linked to the corresponding applet as well. You will need to make sure that the Java 2 plug-in is installed on your browser.

Suggestion: Bring up the source code in a separate browser window so you can see the source code and the applet at the same time. To bring up a page in a new window, right-click on the link and select "View link in new window." If you have a three-button mouse, you can middle-click to do the same thing.

#### AddIntExample.java

- Source code for AddIntExample.java.
- See AddIntExample program output results.

#### ApplesOrangesExample.java

- Source code for ApplesOrangesExample.java.
- ApplesOrangesExample is not a runnable program with output.

#### BattingAverageExample.java

- Source code for BattingAverageExample.java.
- See BattingAverageExample program output results.

#### BooleanExample.java

- Source code for BooleanExample.java.
- See BooleanExample program output results.

#### BranJeffKateExample.java

- Source code for BranJeffKateExample.java.
- See BranJeffKateExample program output results.

#### CharArrayExample.java

- Source code for CharArrayExample.java.
- See CharArrayExample program output results.

#### CharExample.java

- Source code for CharExample.java.
- See CharExample program output results.

#### DisastersExample.java

- Source code for DisastersExample.java.
- See DisastersExample program output results.

#### DoubleExample.java

- Source code for DoubleExample.java.
- See DoubleExample program output results.

#### FloatExample2.java

- Source code for FloatExample2.java.
- See FloatExample2 program output results.

#### GeorgeWashingtonExample.java

- Source code for GeorgeWashingtonExample.java.
- See GeorgeWashingtonExample program output results.

#### GetRichQuickExample.java

- Source code for GetRichQuickExample.java.
- See GetRichQuickExample program output results.

#### GetRichQuickExample2.java

- Source code for GetRichQuickExample2.java.
- See GetRichQuickExample2 program output results.

#### GetRichQuickExample3.java

- Source code for GetRichQuickExample3.java.
- See GetRichQuickExample3 program output results.

#### IntArrayExample.java

- Source code for IntArrayExample.java.
- See IntArrayExample program output results.

#### IntExample1.java

- Source code for IntExample1.java.
- See IntExample1 program output results.

#### IntExample2.java

- Source code for IntExample2.java.
- See IntExample2 program output results.

#### IntegerExample.java

- Source code for IntegerExample.java.
- See IntegerExample program output results.

#### IsLowerCaseExample.java

- Source code for IsLowerCaseExample.java.
- See IsLowerCaseExample program output results.

#### JohnBigbootyExample.java

- Source code for JohnBigbootyExample.java.
- See JohnBigbootyExample program output results.

#### MulderScullyExample.java

- Source code for MulderScullyExample.java.
- See MulderScullyExample program output results.

#### QuickBrownFoxExample.java

- Source code for QuickBrownFoxExample.java.
- See QuickBrownFoxExample program output results.

#### RamboFiestyExample.java

- Source code for RamboFiestyExample.java.
- See RamboFiestyExample program output results.

#### RochelleExample.java

- Source code for RochelleExample.java.
- See RochelleExample program output results.

#### ThreeStoogesExample.java

- Source code for ThreeStoogesExample.java.
- See ThreeStoogesExample program output results.

#### UseTheForceExample.java

- Source code for UseTheForceExample.java.
- See UseTheForceExample program output results.

#### UseTheForceExample2.java

- Source code for UseTheForceExample2.java.
- See UseTheForceExample2 program output results.

#### UseTheForceExample3.java

- Source code for UseTheForceExample3.java.
- See UseTheForceExample3 program output results.

#### VectorExample.java

- Source code for VectorExample.java.
- See VectorExample program output results.

Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR