Printing out
Printing text is one of the first steps in Java programming. It helps display messages, debug code, and interact with users.
Complete the program to print a welcome message!
Cet exercice fait partie du cours
Introduction to Java
Instructions
- Replace
____
with the correct Java keyword for printing -println
.
Tip: you can view the Slides in the output window. On mobile, click on the three horizontal lines.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
class WelcomeToJava {
public static void main(String[] args) {
// Replace the ____ below with the necessary keyword
System.out.____("Welcome to Java!");
}
}