package test;
import java.util.Calendar;
public class Child extends Father {
public Child() {
System.out.println("child......");
}
public static void main(String[] args) {
Calendar cal=Calendar.getInstance();
cal.add(Calendar.DATE, -1);
System.out.println(cal.getTime());
}
}
打印昨天当前时刻
最新推荐文章于 2022-09-07 23:43:58 发布