Practical uses of JShell
Whether you are a new or seasoned developer or just new to Java, you are bound to find the JShell very useful. In this section, we will look at some practical uses of JShell. Specifically, we will cover:
- Feedback modes
- Listing your assets
- Editing in the JShell
Feedback modes
Command-line tools usually provide relatively sparse feedback in an effort to not overcrowd the screen or otherwise become a nuisance to developers. JShell has several feedback modes in addition to giving developers the ability to create their own custom modes.
As you can see from the following screenshot, there are four feedback modes--concise
, normal
, silent
, and verbose
. Here, we entered the /set feedback
command without any parameters to list the feedback modes as well as to identify what the current feedback mode is. The first line of output displays the command-line command and argument set that would be used to set the mode to the currently set mode. So, in the following screenshot, the current...