package calculator; import java.util.*;
public class calculator {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Calculator");
System.out.println("Enter a number");
double firstNumber = in.nextDouble();
System.out.println("Enter another number");
double secondNumber = in.nextDouble();
System.out.println("Enter the letter for 'm'ultiply 's'ubtract 'a'dd or 'd'ivide");
String wantedProcess = in.nextLine();
String multiply = "m";
String subtract = "s";
String add = "a";
String divide = "d";
if(wantedProcess.equals(multiply))
{
double product = firstNumber * secondNumber;
System.out.println("=" + product);
}
}
} so this is the calculator i was making but after i enter two numbers i cant type m s a or d. what am i doing wrong?