Challenge: Hello, World!
Completed
Write a program that prints exactly Hello, World!
Input
None.
Output
One line: Hello, World!
Example
Output
Hello, World!
Editor
Java
Hints
Use System.out.println("...");
Check the capital H and W, the comma and the exclamation mark.
Solution explanation
System.out.println prints the text between the quotes and ends the line.
Show solution
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
} Output
Answer
You can practice without logging in. Log in to save completion.
Save your progress
You're practising as a guest, so your progress won't be saved.
- Track every lab you complete
- Earn verifiable lab certificates
- See your progress in every module