public class task2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
LocalDate today=LocalDate.now();
LocalDate birthday=LocalDate.of(2002,8,24);
Period a=Period.between(birthday, today);
System.out.println(a.getYears()+" "+a.getMonths()+" "+a.getDays());
}
}
好像没啥毛病,是不是eclipse哪里有啥问题。