public static void main(String[] args) { int InvoiceNum = 2000; int BalanceDue = 2000; int Day = 31; int Month = 9; int Year = 2013; int DayOne = 30; int DayTwo = 31; //Day/month Combos if(Month==9||Month==4||Month==6||Month==11&&Day>=31) Day = DayOne; if(Day>=32&&Month==1||Month==2||Month==3||Month==5||Month==7||Month==8||Month==9||Month==10||Month==12) Day = DayTwo; // forcing numbers to 0 if(InvoiceNum>1000) InvoiceNum = 0; else InvoiceNum = InvoiceNum; if(Month>12) Month = 0; else Month = Month; if(Year<2011||Year>2017) Year = 0; Year = Year;

Basically, my assignment is, for example, if someone puts Sept. 31st, to force it to sept. 30th. I'm not getting any errors of any sort, it just isn't forcing the numbers to what I want them to b. also, when I tried to make it something like "if(Day>32&&Month==1, 2, 3" etc. it doesn't work at all.

Sorry for the bad explanation of my problem, I don't know a lot of the terminology so I'm just trying to make it so it'll be somewhat understandable.

My code forcing them to zero if month is over 13, etc. all work. Which is why I don't understand why the Day/Month combo ones aren't working.