### Java 2 Interactive Programmer's Workbook

## Source code for Chapter 05

Here is the source code to the exercises and examples for Chapter 05. 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.

#### ANDExample.java

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

#### ANDExerciseExample1.java

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

#### ANDExerciseExample2.java

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

#### ANDTemperatureHumidityExample.java

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

#### MowTheLawnExample.java

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

#### NOTExample.java

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

#### NOTPasswordExample.java

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

#### ORExample.java

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

#### ORExerciseExample1.java

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

#### ORExerciseExample2.java

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

#### ORMilesMonthsExample.java

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

#### ParenthesisExample.java

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

#### ScholarshipExample.java

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

#### XORCakeExample.java

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

#### XORExample.java

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

#### XORExerciseExample1.java

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

#### XORExerciseExample2.java

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

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