如何退出 JShell 并返回到命令行?

在使用 JShell 时,如何退出到 CMD 行?

我已经尝试了 ctrl + x,只是写作停止,但没有喜悦。

24033 次浏览

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