From b469565547f5dcc5e5459f69edf8b2337a2c4d9b Mon Sep 17 00:00:00 2001 From: Buhake Sindi Date: Sun, 20 Oct 2024 22:33:37 +0200 Subject: [PATCH] Hello world in Java with Unnamed classes and Instance main Methods feature (Java 21 and higher, in preview mode). --- j/Java21.java | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 j/Java21.java diff --git a/j/Java21.java b/j/Java21.java new file mode 100644 index 000000000..ebc7b88b6 --- /dev/null +++ b/j/Java21.java @@ -0,0 +1,4 @@ + +void main() { + System.out.println("Hello World"); +} \ No newline at end of file