Examples from the Java Class Libraries, Second Edition, Volume 1, Supplement for the Java 2 Platform, Standard Edition, v1.2 java.io java.lang java.lang.ref java.lang.reflect java.math java.net java.text java.util java.util.jar 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 java.net.NetPermission class, go to the directory: net/NetPermission To find the method example for java.io.File.toURL(), go to the directory: io/File/toURL 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 If the example requires an input file such as a input.txt or a jar file, include it as a parameter on the command line: java Main test.jar -- 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 might not be included. Cheers, Patrick Chan Rosanna Lee Douglas Kramer June 1999