Simple Calculator: Addition wrong output : <p>I'm a beginner and I am trying to make a simple calculator in java. Everything works fine except for Addition has wrong output (e.g. 1+1 = 1.01.0). Here is a sample of my code</p>

<pre><code>package Package;
import java.util.Scanner;
public class SimpleCalculator {

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);


    System.out.println("Enter Equation:");
    double num1 = input.nextDouble();


    String oper = input.next();
    String plus, minus, divide, modulus, multiply;
    plus = "+";
    minus = "-";
    divide = "/";
    multiply = "*";
    modulus = "%";

        //Everything is the same but addition seems to have wrong output
        if (oper.equals(plus))
        {
            double num2 = input.nextDouble();
            System.out.println("= " + num1 + num2); 
        }
        else if (oper.equals(minus))
        {
            double num2 = input.nextDouble();
            System.out.println(num1 - num2);
</code></pre>
