When you'll open this project in GitHub Codespaces, a terminal window will be shown at the bottom of the page.
Use the terminal window shown at the bottom to run the following command:
java HelloWorld.java
If you want to find any compile time errors, run the following command:
javac HelloWorld.java