publicclassReviewDates{
privateGregorianCalendarfirstDay,oneDay,oneWeek,oneMonth,oneQuarter,oneYear;
finalintdateArraySize=6;
ReviewDates(GregorianCalendargcDate){
intyear=gcDate.get(GregorianCalendar.YEAR);
intmonth=gcDate.get(GregorianCalendar.MONTH);
intdate=gcDate.get(GregorianCalendar.DATE);
firstDay=newGregorianCalendar(year,month,date);
oneDay=newGregorianCalendar(year,month,date);
oneWeek=newGregorianCalendar(year,month,date);
oneMonth=newGregorianCalendar(year,month,date);
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/