Some of your code has me concerned:
public static String reverseLookupMonth(int month) {
//the month returned is 1 based, the result we need is 0 based.
int monthus = month - 1;
String returner = null;
for (int i = 0; i < DateUtility.MONTHS_INT.length; i++) {
if (DateUtility.MONTHS_INT[i] == monthus) {
returner = DateUtility.MONTHS_STR[i];
break;
}
}
return returner;
}
Could that method simply be:
public static String reverseLookupMonth(int month) {
month--;
if ((DateUtility.MONTHS_STR.length < month) || (month < 0)) return null;
return DateUtility.MONTHS_STR[month];
}
