Print a word · Imprimer un mot
Print a word
Welcome to the Java track! Java always has some setup lines around your code. For now, only change the words inside the quotes — leave the rest.
System.out.println("cat") shows cat.
The lines around your code — public class Main and public static void main — must stay exactly as they are. If a quote " or the ; goes missing, Java does not run the program. It shows an error such as ';' expected with a line number, and the card under it explains what to fix. The first Run can take a few seconds.
Imprimer un mot
Bienvenue dans le parcours Java ! Java a toujours quelques lignes de configuration autour de votre code. Pour l'instant, changez uniquement les mots entre guillemets — laissez le reste.
System.out.println("cat") affiche cat.
Les lignes autour de votre code — public class Main et public static void main — doivent rester exactement telles quelles. Si un guillemet " ou le ; manque, Java n'exécute pas le programme. Il affiche une erreur telle que ';' expected avec un numéro de ligne, et la carte ci-dessous explique comment corriger. Le premier Exécution peut prendre quelques secondes.
Change the text so it prints hello · bonjour. · Changez le texte pour qu'il imprime hello · bonjour.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.