Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Array Basics | Reference Types and Strings
Java Data Types

bookChallenge: Array Basics

Tâche

Swipe to start coding

Implement a method that returns a String array with predefined values. The main method should call this method and assign its return value to a variable. Do not print anything inside the method.

  • Define a public static method named getWords that returns a String array with several predefined words.
  • In the main method, call the getWords method and assign the result to a variable.

Solution

solution.java

solution.java

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. 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

Awesome!

Completion rate improved to 7.14

bookChallenge: Array Basics

Glissez pour afficher le menu

Tâche

Swipe to start coding

Implement a method that returns a String array with predefined values. The main method should call this method and assign its return value to a variable. Do not print anything inside the method.

  • Define a public static method named getWords that returns a String array with several predefined words.
  • In the main method, call the getWords method and assign the result to a variable.

Solution

solution.java

solution.java

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 2. Chapitre 4
single

single

some-alt