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