Listing your assets

There are a few JShell commands that are convenient for listing assets that you have created. Using the feedback demonstration from the previous section, we executed the /vars, /methods, and /list commands to provide a list of variables, methods, and all sources, respectively:

We can also use the /list -all command and option combination to see what packages JShell imported. As you can see in the following screenshot, JShell imported several packages that make our work within the shell more convenient, saving us time having to import these standard packages in our methods:

If you just want to list the startup imports, you can use the /list -start command and option combination. As you can see in the following screenshot, each startup import has an s prefix and is numerically ordered:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset