Challenge: Three Lines About Java
Completed
Print these three lines, exactly as shown:
Java is a language. I write code. The JVM runs it.
Input
None.
Output
The three lines above.
Example
Output
Java is a language. I write code. The JVM runs it.
Editor
Java
Hints
Use one println for each line.
Every instruction ends with a semicolon.
Solution explanation
Three println calls print three lines, from top to bottom.
Show solution
public class Main {
public static void main(String[] args) {
System.out.println("Java is a language.");
System.out.println("I write code.");
System.out.println("The JVM runs it.");
}
} 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