So I'm trying to just get used to java...and based on what I see we're coming up on next in lecture is just using the operators...so I'm trying to make a basic calculator program that add,sub,div,and mult 2 numbers.

So here's my code...it does compile and run...however when I want to divide, multiply, or subtract...and hit the corresponding s,d,or m...It will only do addition....but the thing is...it does what addition tells it to do...and instead of ending...it goes straight into subtraction.....then multiplication....then division, like there's no stop to the program until all 4 operations finish running. Where am I going wrong?

package egr118home;

import java.util.*;

public class Experimenting {

public static void main(String[] args) {

Scanner input = new Scanner (System.in);

String decision;

System.out.println("What Operation would you like to do? \n"

+ "A for Addition, " + "S for Subtraction, " +

"M for Multiplication," + " D for Division: ");

decision = input.next();

if (decision.equalsIgnoreCase("a"));

{

Addition();

}

if (decision.equalsIgnoreCase("s"));

{

Subtraction();

}

if (decision.equalsIgnoreCase("m"));

{

Multiplication();

}

if (decision.equalsIgnoreCase("d"));

{

Division();

}

}

private static void Addition() {

double aInput1;

double aInput2;

double aAnswer;

Scanner input = new Scanner(System.in);

System.out.println("Enter First Number to be Added: ");

aInput1 = input.nextDouble();

System.out.println("Enter Second Number to be Added: ");

aInput2 = input.nextDouble();

aAnswer = aInput1 + aInput2;

System.out.println("Your answer is: " + aAnswer);

}

private static void Subtraction() {

double sInput1;

double sInput2;

double sAnswer;

Scanner input = new Scanner(System.in);

System.out.println("Enter First Number to be Subtracted: ");

sInput1 = input.nextDouble();

System.out.println("Enter Second Number to be Subtracted: ");

sInput2 = input.nextDouble();

sAnswer = sInput1 - sInput2;

System.out.println("Your answer is: " + sAnswer);

}

private static void Multiplication() {

double mInput1;

double mInput2;

double mAnswer;

Scanner input = new Scanner(System.in);

System.out.println("Enter First Number to be Multiplied: ");

mInput1 = input.nextDouble();

System.out.println("Enter Second Number to be Multiplied: ");

mInput2 = input.nextDouble();

mAnswer = mInput1 * mInput2;

System.out.println("Your answer is: " + mAnswer);

}

private static void Division() {

double dInput1;

double dInput2;

double dAnswer;

Scanner input = new Scanner(System.in);

System.out.println("Enter First Number to be Divided: ");

dInput1 = input.nextDouble();

System.out.println("Enter Second Number to be Divided: ");

dInput2 = input.nextDouble();

dAnswer = dInput1 / dInput2;

System.out.println("Your answer is: " + dAnswer);

}

}

Can anyone help me out and point out where I went wrong?