private static void getMaxdays(int year,int mon){
Calendar ca = Calendar.getInstance();
ca.clear();
ca.set(Calendar.YEAR,year);
ca.set(Calendar.MONTH,mon+1);
int max = ca.getActualMaximum(Calendar.DAY_OF_MONTH);
System.out.println(max);
}
posted on 2006-03-19 22:48
xnabx 阅读(313)
评论(0) 编辑 收藏