HelloWorld.java (Filename must match class' name)
HelloWorld.java
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World."); } }
javac HelloWorld.java
java HelloWorld
Last updated 4 years ago