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 



… [Trackback]
[…] Read More Information here on that Topic: geeksforgeeks.org/using-variables-in-jshell-of-java-9/ […]
… [Trackback]
[…] Find More Info here to that Topic: geeksforgeeks.org/using-variables-in-jshell-of-java-9/ […]
… [Trackback]
[…] Find More Info here on that Topic: geeksforgeeks.org/using-variables-in-jshell-of-java-9/ […]
… [Trackback]
[…] There you can find 93305 more Info to that Topic: geeksforgeeks.org/using-variables-in-jshell-of-java-9/ […]
… [Trackback]
[…] There you will find 35418 additional Information to that Topic: geeksforgeeks.org/using-variables-in-jshell-of-java-9/ […]