Yes, you read the title right. — Medium served up the article, Revisiting Java for Shell Scripting, in my feed. Since I frequently use the JVM for scripting (mostly using scala-cli), I took the author’s suggestions for a spin. In brief, this was what was proposed in the article: #!/usr/bin/env -S java --source 21 --enable-preview
void main() {…