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

bookChallenge: 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 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ösung

solution.java

solution.java

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 4
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

Awesome!

Completion rate improved to 7.14

bookChallenge: 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 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ösung

solution.java

solution.java

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 4
single

single

some-alt