LoslegenKostenlos loslegen

Your first Java code

Welcome to your first Java program! Every journey begins with a single step, and in programming, that step is running your first piece of code. Let's see what happens when you execute a Java program.

Note: You do not need to change the code in this exercise.

Diese Übung ist Teil des Kurses

Introduction to Java

Kurs anzeigen

Anleitung zur Übung

  • Click the run code button to execute the program that prints a welcome message.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

// WelcomeToJava is a Java class
class WelcomeToJava {

	// The main method is the kickoff point for Java applications
    public static void main(String[] args) {
    
    	// Println statements output results to the screen shown below
    	System.out.println("Welcome to Introduction to Java!");
    }
}
Code bearbeiten und ausführen