simple java error i don't know how to fix : <p>I am new to Java. I wrote this program and when I run it, it always gives me that the answer is <strong>0.0</strong> </p>

<p>Can you tell me what I did wrong?</p>

<pre><code>import java.util.Scanner;
public class Learnclass {
    public static void main(String[] args) {
        Double fnum, snum;
        Double ans = 0.0;
        String opr;
        Scanner getIn = new Scanner(System.in);


        System.out.print("Enter your first number: ");
        fnum = getIn.nextDouble();
        System.out.print("Enter your second number: ");
        snum = getIn.nextDouble();
        System.out.print("Enter the operation: ");
        opr = getIn.next();


    if(opr == "add") {
        ans = fnum + snum;
   } 

    System.out.print("Answer is " + ans);
}

}
</code></pre>
