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)? ");

}

}

}

[2805 byte] By [dukefan444a] at [2007-11-26 18:23:41]
# 1
hey duke, you're back :)can you please enclose the whole code in a [code] block. it's hard on the eyes
albertsesea at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 2
nevermind. you're missing an equal (=) sign on status = "SILVER";
albertsesea at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 3
Ok fixed the equal sign but still the same error stating " ; " expected after the )) in all the if statements. I have 13 if statements and 13 errors, but they are all the same error.
dukefan444a at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 4
-
paulcwa at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 5
i'm sorry, what editor are you using? it's working fine for me, except that the if keyword should be small i.. try changing them to small iif and not If
albertsesea at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 6
thanks albert once again it was the I's in the ifs needed to be lowercase.
dukefan444a at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...
# 7
no problem. goodluck on the project and hope you reach your deadline =)
albertsesea at 2007-7-9 5:57:45 > top of Java-index,Java Essentials,New To Java...