首先Calendar 是个抽象类,所以不能new 对象
public abstract class Calendar implements Serializable...
通过getInstance()得到一个Calender
Calendar c = Calender.getInstance();
通常是这么使用Calender的:
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL);
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(new Date());
System.out.println("System Date: " + dateFormat.format(cal.getTime()));