import javax.swing.JOptionPane; public class Addition { public static void main(String args[]) { String firstNumber= JOptionPane.showInputDialog("First integer"); String SecondNumber= JOptionPane.showInputDialog("Second integer"); int number1= Integer.parseInt(firstNumber); int number2= Integer.parseInt(SecondNumber); int sum= number1+number2; JOptionPane.showInputDialog(null,"The sum is" + sum, "Sum of two Integers", JOptionPane.PLAIN_MESSAGE); } }