Challenge: Array Basics
Tehtävä
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
getWordsthat returns aStringarray with several predefined words:"apple", "banana", "cherry". - In the
mainmethod, call thegetWordsmethod and assign the result to a variable.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 7.14
Challenge: Array Basics
Pyyhkäise näyttääksesi valikon
Tehtävä
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
getWordsthat returns aStringarray with several predefined words:"apple", "banana", "cherry". - In the
mainmethod, call thegetWordsmethod and assign the result to a variable.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single