How to quit the JShell and go back to the command-line? How to quit the JShell and go back to the command-line? java java

How to quit the JShell and go back to the command-line?


You can use the JShell command to exit as:

/exit

Side note: Interestingly, with the use of command abbreviations for input shortcuts:-

/ex

(of course /exi) also, resolves into the same command.

enter image description here


inorder to exit from jshell you can use the command /exit