Last active
August 29, 2021 13:35
-
-
Save giner/2ae3405e7eec0bd8e4e3501238202568 to your computer and use it in GitHub Desktop.
Java: Run Java code without compiling (JEP 330)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S java --source 11 | |
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment