From c7733feaa6afa2fab1e3b4b0e9a6c65fd3dfb77e Mon Sep 17 00:00:00 2001 From: ilsix Date: Thu, 4 Apr 2024 23:03:48 +0200 Subject: [PATCH] Tested Java --- java/helloworld.java | 3 ++- java/test.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 java/test.sh diff --git a/java/helloworld.java b/java/helloworld.java index cf9fbf6..5e62599 100644 --- a/java/helloworld.java +++ b/java/helloworld.java @@ -1,4 +1,5 @@ -class HelloWorld { +//compiles and runs successfully +class helloworld { public static void main(String[] args) { System.out.println("Hello World!"); } diff --git a/java/test.sh b/java/test.sh new file mode 100755 index 0000000..029eb3a --- /dev/null +++ b/java/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +javac --release 17 helloworld.java +java helloworld \ No newline at end of file