Java Source Code

Examples from the Text

This section contains the full Java source code for examples given in the text. You should be able to compile these files and use them. Note however that some of these examples depend on other classes, such as TextIO.class and MosaicFrame.class. To use examples that depend on other classes, you will need to compile the source code for the required classes and place the compiled classes in the same directory with the main class file. If you are using an integrated development environment such as Java Workshop or Visual J++, you can simply add any required the source code files to your project.