### Java 2 Interactive Programmer's Workbook

## Source code for Chapter 11

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

#### CheckIntArrayExample1.java

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

#### CheckIntArrayExample2.java

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

#### ColonParseException.java

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

#### EIEIOException.java

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

#### ExceptionTest1.java

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

#### GetEMailHostExample.java

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

#### GetIndexOfAtSignExample.java

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

#### MissingColonException.java

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

#### MyFieldParserExample.java

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

#### OldMacDonald.java

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

#### TestStack/MyQueue.java

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

#### TestStack/MyStack.java

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

#### TestStack/NoMoreElementsException.java

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

#### TestStack/TestStack.java

- Source code for TestStack.java.
- Run the TestStack applet.

#### ValidateStringLengthExample.java

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

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