我想验证一个日历日期不在java中的日历数组列表中,我这样做但它对我不起作用:
List<Calendar> listFeriers = new ArrayList<Calendar>();
startCal = Calendar.getInstance();
startCal.setTime(beginningDate);
endCal = Calendar.getInstance();
endCal.setTime(endDate);
do {
if (!listFeriers.contains(startCal)) {
// Traitement
}
} while (startCal.before(endCal));