Home  >  Article  >  Java  >  Package import in JShell in Java 9

Package import in JShell in Java 9

王林
王林forward
2023-09-07 15:37:02595browse

Java 9中JShell中的包导入

Generally, use JShell to import 10 packages.

The following command displays the default imported packages.

jshell> /import

Output

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete