Lesson 1 - Hello World
Getting started
Section titled “Getting started”Hi there! Welcome to your first lesson of the Java course!
In order to complete this lesson you’ll have to write some Java code to display the text “Hello World!” on the console.
Code Snippet
The command for displaying text on the console has the following structure: System.out.println(<insert text>);
Note that with this command - as with every command in Java - you have to end with a semicolon (;).
Start this lesson by downloading the base file to your system. Compare your code with the solution when you are done coding. Your code should match the code in the solution.
Download Base FileShow solution
public class Main { System.out.println("Hello World!");}If you need more help, please refrain from using AI and check out the website w3schools.com which provides you with an approachable reference for most programming languages including Java.