Apuntes
becky: dialoguebox
Contenido del apunte (1)
Página 1
String fn = JOptionPane.showInputDialog("enter the first number "); //message to ask for the first nnumber String sn = JOptionPane.showInputDialog("enter the second number "); //message to ask for the second nnumber int numb1 = Integer.parseInt(fn); int numb2 = Integer.parseInt(sn); int sum = numb1 + numb2; /////nowtodisplay//// JOptionPane.showMessageDialog(null, "The sum is : " + sum,"tamreen el jamm",JOptionPane.ERROR_MESSAGE);
Información
- Descripción
- Apunte sobre becky: dialoguebox, creado por Ghezala Mohamed el 03/11/2018.
- Creado por
- Ghezala Mohamed
- Visitas
- 0
- Valoración