Examples from the Java Class Libraries, Second Edition, Volume 1 java.io java.lang java.lang.reflect java.math java.net java.text java.util java.util.zip NOTICES: 1. These examples are excerpts from the Java Class Libraries book, whose copyright is owned by Addison-Wesley Longman, Inc. Permission to use, copy, modify, and distribute these examples for NON-COMMERCIAL purposes and without fee is hereby granted provided this copyright notice appears in all copies. These examples may not otherwise be used, copied, modified or redistributed without the express written permission of the authors and Addison-Wesley. 2. The duke image used in some examples is copyright protected by Sun Microsystems Inc. and may not be redistributed without permission from Sun Microsystems Inc. -- The examples in these directories are arranged in the following way: package | +--class | +--CLASS EXAMPLE | +--method | +--METHOD EXAMPLE For example, to find the class example for the Array class, go to the directory: lang.reflect/Array To find the method example for BigInteger.compareTo(), go to the directory: math/BigInteger/compareTo In these directories you will find the example source code, compiled class files, and any necessary supporting files. You can run most examples with the command: java Main Some examples require an input file or output file. Usually a usage line is printed to indicate how to run it. In a few instance, you need to look at the source to see what parameters the program expects. Note that not all examples in the book are included in these directories. In particular, we've only included examples that are complete programs. Examples that are code fragments have not been included. Cheers, Patrick Chan Rosanna Lee Douglas Kramer March 1998