What did the print out show for the values of those variables?
I find it hard to believe that the if you show would not be true if those were the values.
The conclusion is either the if was not...
Type: Posts; User: Norm
What did the print out show for the values of those variables?
I find it hard to believe that the if you show would not be true if those were the values.
The conclusion is either the if was not...
Try debugging your code by adding print outs to see what you are comparing:
System.out.println("months[month-1]= " + months[month-1] + ", cutMonth=" + cutMonth + "<");