public static void main(String[] args) { Calendar calender=Calendar.getInstance(); calender.add(Calendar.DATE,-1); System.out.println("现在时间是"+calender.getTime()); }
public static void main(String[] args) { Calendar calender=Calendar.getInstance(); calender.add(Calendar.DATE,-1); System.out.println("现在时间是"+calender.getTime()); }