Challenge: Basic Method Creation
Tâche
Swipe to start coding
Practice creating and calling methods that do not accept any parameters.
- Create a public static method named
printWelcomethat prints the string:Welcome to the Java Methods Challenge!; - Create a public static method named
showInstructionsthat prints the string:Follow the instructions carefully to complete the task.; - Create a public static method named
printCompletionthat prints the string:Congratulations! You have completed the challenge.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 8.33
Challenge: Basic Method Creation
Glissez pour afficher le menu
Tâche
Swipe to start coding
Practice creating and calling methods that do not accept any parameters.
- Create a public static method named
printWelcomethat prints the string:Welcome to the Java Methods Challenge!; - Create a public static method named
showInstructionsthat prints the string:Follow the instructions carefully to complete the task.; - Create a public static method named
printCompletionthat prints the string:Congratulations! You have completed the challenge.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
single