<<< How to import Java classes | Index | java.lang package >>> |
Java classes are grouped in what we call packages (more about that later).
In order to use a Java API class in your .java application file, you must import that particular class.
To import a class or a complete package, the program uses the import statement.
Your import statements must be the first statements in your .java file.
The import with * indicates that all classes in the package should become available in your .java file.
<<< How to import Java classes | Index | java.lang package >>> |