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

bookChallenge: Array Basics

Oppgave

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.

Løsning

solution.java

solution.java

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

Awesome!

Completion rate improved to 7.14

bookChallenge: Array Basics

Sveip for å vise menyen

Oppgave

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.

Løsning

solution.java

solution.java

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
single

single

some-alt