Challenge: Three Lines About Java

Lab Java Beginner 10 points

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.
Sample output available
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
HOME LABS COMMUNITY DASHBOARD