Generally, use JShell to import 10 packages.
The following command displays the default imported packages.
jshell> /import
import java.io.* import java.math.* import java.net.* import java.nio.file* import java.sql.* import java.util.* import java.util.regex* import java.util.function* import java.util.prefs* import java.util.stream.*
Use JShell to import specific packages
jshell> import java.util.*;
The above is the detailed content of Package import in JShell in Java 9. For more information, please follow other related articles on the PHP Chinese website!