Eclipse Usage and tricks seven: automatically generate get and set methods 2

Source: Internet
Author: User

In the previous article, we described how to automate batch generation of get and set functions. This method is generally used after declaring the data field of the class, which is more convenient and quick. Here are a few more ways to automatically generate the Get and set functions.

Step one: Press ctrl+1 in the declared data field:

Step Two: Click the last option of the Create getter and setter, click OK in the popup dialog box:

In the introduction of another method:

Step one: After declaring the data field of the class, enter set and hold alt+/:

Step two: With step one, enter get, and then press and hold alt+/:

Previous article, Eclipse Usage and Tricks VI: automatic generation of Get and set Method 1:
http://blog.csdn.net/ts1122/article/details/8852555

Next article, Eclipse Usage and tricks eight: add Try/catch1 automatically:
http://blog.csdn.net/ts1122/article/details/8886219

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.