JShell comes with the JDK installation. You can find it in the bin directory as $JAVA_HOME/bin/jshell. Execute it to start the JShell session. Before you get familiar with JShell, we recommend starting the session with the option -v, which stands for verbose. This way, the shell will add more details to each of your actions, explaining what has been accomplished with each of them. After launching jshell in a terminal window, you will see the following output:
This means that a JShell session is created and can be used for Java code running. Enter the recommended command /help intro and read the ...