How to shutdown jshell at the end of the script?

前端 未结 2 664
轮回少年
轮回少年 2021-02-05 01:27

How to instruct jshell to terminate at the end of the script similarly to interpreters of other languages like for example python3 or node

2条回答
  •  一整个雨季
    2021-02-05 01:54

    Inside the script, use the jshell command /exit. This will exit jshell at the end of your script.

    Check this reference https://docs.oracle.com/javase/9/jshell/introduction-jshell.htm#JSHEL-GUID-465BA4F5-E77D-456F-BCB7-D826AC1E18AE

提交回复
热议问题