Search code examples
java-9jshell

Exit jshell in java9 version


I recently upgraded to java9 and I am using the Jshell option which java provides. I find it intuitive but I am not able to close the Jshell window, can someone suggest some command for the same.


Solution

  • you can simply type /exit to exit the jshell console.

    you can find more info about jshell here

    https://docs.oracle.com/javase/9/tools/jshell.htm#JSWOR-GUID-C337353B-074A-431C-993F-60C226163F00