//把当前年份设置成
Calendar c = Calendar.getInstance();
c.set(2003, 7, 31);
c.set(Calendar.MONTH, 8);
c.set(Calendar.DATE, 5);
System.out.println(c.getTime());//输出2013-9-5,这里体现了延迟修改
Calendar c1 = Calendar.getInstance();
c1.set(Calendar.MONTH, 8);
c1.set(Calendar.DATE, 31);
System.out.println(c.getTime());//为什么这里没有延迟修改? |