Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Basic Method Creation | Introduction to Methods
Quizzes & Challenges
Quizzes
Challenges
/
Mastering Methods in Java

bookChallenge: Basic Method Creation

Tâche

Swipe to start coding

Practice creating and calling methods that do not accept any parameters.

  1. Create a public static method named printWelcome that prints the string: Welcome to the Java Methods Challenge!;
  2. Create a public static method named showInstructions that prints the string: Follow the instructions carefully to complete the task.;
  3. Create a public static method named printCompletion that prints the string: Congratulations! You have completed the challenge.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 4
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: 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.

  1. Create a public static method named printWelcome that prints the string: Welcome to the Java Methods Challenge!;
  2. Create a public static method named showInstructions that prints the string: Follow the instructions carefully to complete the task.;
  3. Create a public static method named printCompletion that prints the string: Congratulations! You have completed the challenge.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 4
single

single

some-alt