import javax.swing.*; public class Program { public static void main(String args){ String xs=JOptionPane.showInputDialog(null, "Enter first number"); String ys=JOptionPane.showInputDialog(null, "Enter second number"); int x,y; x=Integer.parseInt(xs); y=Integer.parseInt(ys); JOptionPane.showMessageDialog(null, "The sume of " x " " y " is " (x y)); } }