Tested Java

This commit is contained in:
ilsix 2024-04-04 23:03:48 +02:00
parent 315b2f5b9c
commit c7733feaa6
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
class HelloWorld { //compiles and runs successfully
class helloworld {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Hello World!"); System.out.println("Hello World!");
} }

3
java/test.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
javac --release 17 helloworld.java
java helloworld