Skip to content

Commit b36c319

Browse files
authored
Update Java example to use JEP 330
Signed-off-by: GitHub <noreply@github.com>
1 parent 529a16e commit b36c319

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scratch/languages/jvm/java/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ generation in other languages since.
77

88
I've been wanting to try Java again now that development has picked back up again. I've only ever used Java 8.
99

10-
# JEP 445 heckery
10+
# JEP 445 and 330 heckery
1111

1212
```
13-
./_lib/jdk-21/bin/java --source 21 --enable-preview scratch/languages/jvm/java/main.java
13+
./main
1414
```
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env -S java --enable-preview --source 21
2+
13
void main() {
2-
System.out.println("Hello, World!");
4+
System.out.println("This is Java Script! 👿");
35
}

0 commit comments

Comments
 (0)