Prerequisite : JShell in Java 9 We can declare variables and use anywhere throughout Jshell session. Let’s create an integer variable. 
Scratch Variables
If we don’t provide variable name, Java create implicit variable to store the value. These variables start with $ sign. We can use these variable by specifying implicit variable, as we did in the following screen-shot.
Expressions
We can test any valid Java expression to get instant output. See, the following example. Adding two integers 


