Niżo, Hosch:

An Introduction to Programming and Object-Oriented Design Using Java, 2nd Edition

Student Companion Site

Java Library Packages

Library packages include:

  • nhUtilities.basicIO - Defines elementary classes for reading from standard input, writing to standard output, and reading and writing text files. Described in Chapters 7 and 16.
  • nhUtilities.containers - Provides basic generic lists, as described in Chapter 12 and following
  • nhUtilities.containers2 - Defines generic lists that can be accessed with iterators, as described in Chapter 21.
  • nhUtilities.utilities - Provides some basic utility classes.

Two versions of the libraries are currently available. One has been compiled with JDK 1.4.2 using the prototype implementations for JSR14 (Adding Generics to the Java(TM) Programming Language) and JSR201 (Extending the Java(TM) Programming Language with Enumerations, Autoboxing, Enhanced for loops and Static Import). The containers defined in this version do not support "enhanced for loop" iteration.

The second version has been compiled with JDK 1.5.0 beta. Containers in this version implement java.lang.Iterable and support "enhanced for loop" iteration.

The documentation describes the JDK 1.5 version. The only item to note is that the containers.List method iterator() is not available in the JDK 1.4.2 version.

Get Help With:

* These links will open a new window