Add example on how to use java for scripting
This commit is contained in:
parent
30f67ab42b
commit
7d90433a9a
10
JavaScripts/HelloWorld
Executable file
10
JavaScripts/HelloWorld
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/env -S java --source 11
|
||||
|
||||
class Main {
|
||||
public static void main(String args[]) {
|
||||
System.out.println("HelloWorld!");
|
||||
|
||||
// Print the sum of 1 and 2
|
||||
System.out.println(1 + 2);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user