jbang
all
Easily create, edit, and run self-contained source-only Java programs. See also: `java`.
More info →Options (2)
-t, --templatebooleanInitialize a Java class (useful for scripting)
Example:
jbang init {{[-t|--template]}}={{cli}} {{path/to/file.java}}-i, --interactivebooleanUse `jshell` to explore and use a script and any dependencies in a REPL editor
Example:
jbang run {{[-i|--interactive]}}Examples (8)
Use `jshell` to explore and use a script and any dependencies in a REPL editor
jbang run [-i|--interactive]Setup a temporary project to edit a script in an IDE
Run a Java code snippet (Java 9 and later)
made by @shridhargupta | data from tldr-pages