Add example on how to use java for scripting

This commit is contained in:
Isaac Shoebottom 2024-02-07 09:45:59 -04:00
parent 30f67ab42b
commit 7d90433a9a

10
JavaScripts/HelloWorld Executable file
View 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);
}
}