Fifth International World Wide Web Conference
Packages (cont.)
Class identified by its package name, followed by the class name
Use the
import
statement to access class variables and methods without full qualification
import java.applet.Applet; import java.util.*;
First form accesses a single class within a package
Second form accesses all classes within a package
The package
java.lang
is always imported implicitly
considered part of the language definition
String
class is actually
java.lang.String
Java - An Introductory Language Tutorial
(E.A.Johnson)