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

bookChallenge: Array Basics

Compito

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.

Soluzione

solution.java

solution.java

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

Awesome!

Completion rate improved to 7.14

bookChallenge: Array Basics

Scorri per mostrare il menu

Compito

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.

Soluzione

solution.java

solution.java

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

some-alt