LocalDate has private access in LocalDate
This question already has an answer here:
The constructor you are calling is private.
You need to call
LocalDate birthDate = LocalDate.of(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(day));
to construct your date.
链接地址: http://www.djcxy.com/p/24062.html上一篇: Java中的访问修饰符