Please help, this will be an easy and obvious problem but im new to coding and im teaching myself online. My program should ask the user to enter an amount, it should then ask the user to enter an account type, and it should then output the value of the amount with a years interest.
import java.io.IOException;
import java.util.Scanner;
public class BankInvestment {
private static final String Account = null;
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
int S = 3;
double D = 0.5;
double C = 1.5;
int L = 4;
@SuppressWarnings("resource")
Scanner input = new Scanner(System.in);
@SuppressWarnings("resource")
Scanner user_input = new Scanner( System.in );
int n = input.nextInt();
int Output = 0;
String Accounttype = null;
System.out.println("Please Enter Account Type(S,D,C,L): ");
Accounttype = user_input.next();
if (Accounttype == "S"){
Output = n / 100 * S + n;
System.out.println(Output);
}
else if (Account == "D"){
Output = (int) (n / 100 * D + n);
System.out.println(Output);
}
else if (Account == "C") {
Output = (int) (n / 100 * C + n);
System.out.println(Output);
}
else if (Account == "L"){
Output = n / 100 * L + n;
System.out.println(Output);
}
}
}