JShell scripting tools
What tools will be used when JShell it, when the code we've written very little time, but do not want to write class, main method, do not want to compile and run, this time you can use JShell tool.
Start JShell tool, enter JShell command in the DOS command line directly.
![](https://img2018.cnblogs.com/blog/1401526/201905/1401526-20190530101714982-1850261475.png)
Then you can write Java code without having to write classes and methods, you can write code directly method, while eliminating the need to compile and run, you can directly enter
![](https://img2018.cnblogs.com/blog/1401526/201905/1401526-20190530101728766-1918105888.png)