Of course, this can get tiresome, so Java makes it possible to avoid using the full names of classes. There is a shortcut for importing all the classes from a given package. You can import all the classes from java.awt by saying import java.awt. Because the package java.lang is so fundamental, all the classes in java.lang are automatically imported into every program. It would still, however, be perfectly legal to use the longer forms of the names.
Programmers can create new packages.
Suppose that you want some classes that you are writing to be in a package named utilities . Unfortunately, things are a little more complicated than this. Exactly what this means depends on which Java environment you are using. Most commonly, classes in a package named utilities should be in a directory with the name utilities , and that directory should be located in the same place as the program that uses the classes. In projects that define large numbers of classes, it makes sense to organize those classes into one or more packages.