Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Your First Program | Getting Started
Java Basics

book
Your First Program

Task

Swipe to start coding

Replace the line //replace this line with your code with the code that will display Hello World! on the screen.

Solution

java

solution

package com.example;

public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 6
package com.example;

public class Main {
public static void main(String[] args) {
// replace this line with your code
}
}
toggle bottom row
some-alt