int monthFromDB1 = 3;
int monthFromDB2 = 7;int[] monthesFromDB3 = int[12];
// Load monthes as Integer objects from DB3.for (int i = 0; i<12; i++)
if (monthFromDB1>monthesFromDB3[i]||monthesFromDB3[i]>monthFromDB2)
monthesFromDB3[i] = -1;for (int i=0; i<12; i++)
if (monthesFromDB3[i]!=-1)
// Then this is your month under conditions.
int monthFromDB2 = 7;int[] monthesFromDB3 = int[12];
// Load monthes as Integer objects from DB3.for (int i = 0; i<12; i++)
if (monthFromDB1>monthesFromDB3[i]||monthesFromDB3[i]>monthFromDB2)
monthesFromDB3[i] = -1;for (int i=0; i<12; i++)
if (monthesFromDB3[i]!=-1)
// Then this is your month under conditions.
?????
如果你得到"03"和"07",你到底要删除那些月?