Questions about using the Localdate class in eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.