/imports command is used to list the imported items.
Step 1: Open terminal and execute the command jshell.
$jshell
|  Welcome to JShell -- Version 10.0.2
|  For an introduction type: /help intro
jshell>
Step 2: Execute the command /list to see all the imported items.
jshell> /imports
|    import java.io.*
|    import java.math.*
|    import java.net.*
|    import java.nio.file.*
|    import java.util.*
|    import java.util.concurrent.*
|    import java.util.function.*
|    import java.util.prefs.*
|    import java.util.regex.*
|    import java.util.stream.*
 
No comments:
Post a Comment