我用的是jdk1.8,为啥编译错误呀
public class LocalDate { public static void main(String[] args) { // TODO Auto-generated method stub LocalDate now = LocalDate.now(); LocalDate newYearsEve = LocalDate.of(1999,12,31); }}
说要让我创建方法,这个不能直接用吗?
pardon110
相关分类