To make a set of classes part of a package, simply put
package <package name>
Sun also produce other class libraries, and other manufacturers will be writing their own.