JShell scripting tool is a new feature of JDK9

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.
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

 

Guess you like

Origin www.cnblogs.com/wurengen/p/10948047.html