How to exit JShell in Java?

To exit JShell, type /exit. I stuck in JShell for minutes, commands like exit, ctrl + c, end, q!, q, quit all failed, the correct syntax to quit or exit the JShell is /exit. Terminal C:\Users\mkyong>jshell | Welcome to JShell — Version 11.0.1 | For an introduction type: /help intro jshell> exit | Error: | …

Read more