previous
|
start
|
next
Syntax 2.4 : Importing a Class from a Package
import
packageName
.
ClassName
;
Example:
import java.awt.Rectangle;
Purpose:
To import a class from a package for use in a program.
previous
|
start
|
next