Calendar calendar = Calendar.getInstance();
calendar.set(calendar.get(Calendar.YEAR),
calendar.get(Calendar.MONTH),1);
calendar.roll(Calendar.DATE, false);
System.out.println(calendar.get(Calendar.DATE));
posted on 2009-08-04 16:00
liuyimx 阅读(810)
评论(2) 编辑 收藏 所属分类:
java基础