logo

Crowdly

Gegeben ist folgendes Programmfragment: String text; text = JOptionPane.showI...

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

Gegeben ist folgendes Programmfragment:

String text;

text = JOptionPane.showInputDialog(null, "Eingabe");

switch(Integer.parseInt(text)) {

/* füge hier Code ein */

System.out.println("Eine Primzahl (3 oder 5)");

break;

default:

System.out.println("Eine unbekannte Zahl");

Welche Programmzeile muss anstelle des Kommentars /* füge hier Code ein */ stehen, damit der Text Eine Primzahl (3 oder 5) ausgegeben wird, wenn 3 oder 5 eingegeben wird.

More questions like this

Want instant access to all verified answers on elearning.tgm.ac.at?

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