I'm a beginner Java student and trying to get this code to show second JOptionPane if the number chosen is negative or 0. The second JOption isn't appearing if I choose 0 or a negative number. I suspect it has something to do with the "if(result != null)". I've tried using different operands and values and keep getting the bad operand types error. I would like to stick with the if-else statement because that's where we are at the moment in class.

```
public static void calculateR()   
{            
 String result = JOptionPane.showInputDialog(null, "Enter how much money you can save annually.");  
 if(result != null)
 {
   saveAmount = Double.parseDouble(result);
 }
   else
 {
    JOptionPane.showMessageDialog(null, "Pick a number greater than 0!");
 }

```