Trying to do if statements and getting the error "Y cannot be resolved to a variable"
System.out.println("Hotel Tax System");
System.out.println("Custom Tax Rate Y/N");
Answer = S.nextLine();
if (Answer = Y); { //getting issue with this line
System.out.println("Specify customer tax rate:");
CustomTax = S.nextInt();
} else {
System.out.println("Pressummed tax rate 20%");
}
Anyone know of a potential fix for this solution?