Hello, World!
Completed
Write a Java program that prints exactly Hello, World!
Input
None.
Output
Hello, World!
Example
Output
Hello, World!
Editor
Java
Hints
Every Java program starts in public static void main(String[] args).
System.out.println prints text followed by a new line.
Solution explanation
Java code lives inside a class. The program starts in main, and System.out.println prints a line. Every statement ends with a semicolon.
Show solution
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}