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. - In the
mainmethod, call thegetWordsmethod and assign the result to a variable.
Lösung
solution.java
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
Awesome!
Completion rate improved to 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. - In the
mainmethod, call thegetWordsmethod and assign the result to a variable.
Lösung
solution.java
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 4
single