am trying to make this code work to do simple calculation
package inputuserifstatement; import javax.swing.JOptionPane; public class Inputboxesifstatement { public static void main(String[] args) { double firstnumber; firstnumber = JOptionPane.showInputDialog("Enter Number"); double secondnumber; secondnumber = JOptionPane.showInputDialog ("Enter Second Number"); double answer; answer = firstnumber + secondnumber; JOptionPane.showMessageDialog(null, answer); System.exit(0);