<<< Method call | Index | The import statement and packages >>> |
The syntax of the import statement is
import packagename.ClassName;
or
import packagename.*;
For example,
import java.text.NumberFormat; import java.util.Scanner; import java.util.*; import javax.swing.*;
<<< Method call | Index | The import statement and packages >>> |