There is an error with classmates using the Localdate class in eclipse, the biggest possibility is because the eclipse version is too old .
here's how to view the Eclipse version.
1. Right-click on the project ——— click "Build Path" ——— Select "Configure Build Path"
2. You can see your version of Eclipse in the new dialog box. How to not JavaSE-1.8 more than the version description Elipse version of the problem, then reload eclipse it!
3. When you re-install Eclipse, open the program and you will find another error. This is because gettime () uses errors.
4. Find the JRE system library to discover that gettime () is defined as the public final date type. So you have to rewrite a function the same way that the class is localdate. This problem can be solved!
rewrite the GetTime () method, please write it yourself, if you have any questions, please ask your teacher or TA in the lab class.
The simple tutorial ends here, thanks for reading!
Questions about using the Localdate class in eclipse