Packages of classes allow groups of related classes to be pulled together.

To make a set of classes part of a package, simply put

   package <package name>
at the top of each source file that is to be part of the package.

Sun also produce other class libraries, and other manufacturers will be writing their own.