public class HelloWorld {
	public static void main(String[] args) {
		System.out.print("Hello, World!\n");
	}
}

// Create HelloWorl class
public class HelloWorld {
	// Main function:
	public static void main(String[] args) {
		// Print text
		System.out.print("Hello, World!\n");
	}
}

Update HelloWorld.java