title: how do I use a "double" value with JOptionPane.showInputDialog
body: <p>This is my code:</p>
  
  <pre><code>       currentSalary = (double)(JOptionPane.showInputDialog(frame, "Enter your current salary", "Current Salary", JOptionPane.PLAIN_MESSAGE, null, null, "Numbers only!"));
         raise = currentSalary * .04;
         total = currentSalary + raise;
         NumberFormat money = NumberFormat.getCurrencyInstance();
         System.out.println("Your raise is " + money.format(total));
  </code></pre>
  
  <p>currently, I need to make currentSalary a double value but I can't because JOptionPane only holds strings. How would I go about doing this while still using a dialog box? any working answer is appreciated. Thank you.</p>