One small error but it is the same error all the way down through the if's
This program is so close to finally running after I have spent well over 8 hours trying to figure out the code now I am getting an aggravating error saying " ; " expected all the way down throughout my if statements. Can anyone please tell me what to do to get this program to run? I am so close.
Here is my code:
import javax.swing.JOptionPane;
public class CustomerStatus {
public static void main(String[] args) {
int option = JOptionPane.YES_OPTION;
int hiatustime;
int purchasenumber=1;
int loyaltime=0;
String status="";
System.out.println("Purchase Number\t Time before next purchase(months)\tTotal Customer Loyalty(months)\tStatus History");
System.out.println(1 +"\t\t " + 0 + "\t\t\t\t\t" + 0 + "\t\t\t\t" + "STANDARD");
while(option==JOptionPane.YES_OPTION){
hiatustime=Integer.parseInt(JOptionPane.showInputDialog(null, "Enter in the time between purchases(in months): "));
purchasenumber++;
loyaltime+=hiatustime;
If((loyaltime >= 10) && (hiatustime <=6))
status="PLATINUM";
If((loyaltime >= 10) && (hiatustime > 6) && (hiatustime <= 12))
status="GOLD";
If((loyaltime >= 10) && (hiatustime > 12) && (hiatustime <= 18))
status="SILVER";
If((loyaltime >= 10) && (hiatustime > 18) && (hiatustime <= 24))
status="BRONZE";
If((loyaltime >= 10) && (hiatustime > 24))
status="STANDARD";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 6))
status="GOLD";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 12) && (hiatustime > 6))
status"SILVER";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 18) && (hiatustime > 12))
status="BRONZE";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime > 18))
status="STANDARD";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime <= 6))
status="SILVER";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime <= 12) && (hiatustime > 6))
status="BRONZE";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime > 12))
status="STANDARD";
If((loyaltime < 1) && (hiatustime >= 0))
status="STANDARD";
System.out.println(purchasenumber +"\t\t" + hiatustime + "\t\t\t\t\t" + loyaltime + "\t\t\t\t" + status);
option = JOptionPane.showConfirmDialog(null, "Would you like to enter any more time between purchases(in months)? ");
}
}
}

