Notes
becky: dialoguebox
Content of the notes (1)
Page 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);
Information
- Description
- Note on becky: dialoguebox, created by Ghezala Mohamed on 03/11/2018.
- Created by
- Ghezala Mohamed
- Views
- 0
- Rating