CommencerCommencer gratuitement

Your first Java code

It's time to run your first Java code!

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

Cet exercice fait partie du cours

Introduction to Java

Afficher le cours

Instructions

  • Press the Run Code button to execute the Java code and see the results in the Output area.
  • Press the Submit Answer (or Submit) button to proceed to the next exercise.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

// You learned about class in the previous video
class WelcomeToJava {

	// You'll learn about the main method next
    public static void main(String[] args) {
    
    	// You'll learn about println statements too!
    	System.out.println("Welcome to Introduction to Java!");
    }
}
Modifier et exécuter le code