Challenge: Array Basics
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 4
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 7.14
Challenge: Array Basics
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 4
single