import java.util.Calendar;public class CalendarTest{ public static void main(String[] args){ Calendar c=Calendar.getInstance(); System.out.println(c.get(YEAR)); System.out.println(c.get(MONTH)); System.out.println(c.get(DATE)); c.set(2003,10,23,12,32,23); c.add(YEAR,-1); c.roll(MONTH,-8); }}
添加回答
举报
0/150
提交
取消