Wednesday 20 January 2021

Jshell: /imports: List the imported items

/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.*

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment