Challenge: Array Basics
Task
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.
Solution
solution.java
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 7.14
Challenge: Array Basics
Swipe to show menu
Task
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.
Solution
solution.java
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single