I am new to java and trying out a question but I have no idea why it can't calculate my commission
public static void main(String[] args) {
Scanner keyboard= new Scanner(System.in);// input form keyboard
double retail_price;
double emp_num;
char trans_code;
double a =0.06;
double b = 0.08;
double commission;
System.out.println("Please enter the retail price");
retail_price=keyboard.nextDouble();
System.out.println("Please enter your transcation code");
trans_code=keyboard.next().charAt(0);
if (trans_code== a){
commission= (retail_price*a);
}
else
if (trans_code== b){
commission= (retail_price*b);
}
System.out.println("your commission " +commission);
}
}
`