int addiere( int a, int b) { // Ihr Code }
int a = JOptionPane.showInputDialog(null, "Gib eine Zahl ein"); int b = JOptionPane.showInputDialog(null_1, "Gib eine zweite Zahl ein"); System.out.println(a+b);
ausführen
Quelltext überprüfen:
jetzt prüfen