目录

总结

在我们编写代码时,经常需要生成get,set方法.
如何快速生成,本篇主要内容.
效果图如下
idea中快速生成Getter and Setter
第一步:
在People对象中定义变量,idea中快速生成Getter and Setter
第二步:
alt+ins
选择Getter and Setter选项
idea中快速生成Getter and Setter
第三步:
选择要创建的变量名称idea中快速生成Getter and Setter
第四步:
点击ok则生成对应方法
idea中快速生成Getter and Setter

相关文章: