Hallo an alle ich habe mal wieder ein Problem
Warum gibt System.out.println alles richtig aus und JOptionPane.showMessageDialog nicht ?
Warum gibt System.out.println alles richtig aus und JOptionPane.showMessageDialog nicht ?
Java:
if (teiler == 2)
System.out.println(zahl
+ " ist eine Primzahl, da sie genau " + teiler
+ " Teiler hat");
JOptionPane.showMessageDialog(null, zahl
+ " ist eine Primzahl, da sie genau " + teiler
+ " Teiler hat");