logo

Crowdly

Gegeben ist folgendes Programmfragment: int zahl; zahl = Integer.parseInt(JOp...

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

Gegeben ist folgendes Programmfragment:

int zahl;

zahl = Integer.parseInt(JOptionPane.showInputDialog(null, "Eingabe");

if(zahl < 0) {

System.out.println("Die Zahl ist negativ");

}

/* füge hier Code ein */ {

System.out.println("Die Zahl ist 0 und damit weder positiv noch negativ");

}

else {

System.out.println("Die Zahl ist negativ");

}

Welche Programmzeile muss anstelle des Kommentars /* füge hier Code ein */ stehen, damit dieses Programmstück richtig funktioniert.

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!