logo

Crowdly

Welche Ausgabe wird mit dem folgenden Code erzeugt, wenn in der Konsole "Java" (...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Welche Ausgabe wird mit dem folgenden Code erzeugt, wenn in der Konsole "Java" (ohne Anführungszeichen) eingegeben wird?

public class Aufgabe11 {

static final Scanner scanner = new Scanner(System.in);

public static void main(String[] args) {

System.out.print("Eingabe: ");

String eingabe = scanner.next();

for (int i = 0; i < eingabe.length(); i++) {

System.out.println(eingabe.charAt(i));

}

}

}

More questions like this

Want instant access to all verified answers on moodle.hftm.ch?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!