Eclipse自动生成get和set方法

方法一:
1)选中声明的变量,按Ctrl+1

2)点击最后一个选项Create getter and setter


方法二:

在代码区域右键--source--Generate Getters and Setters... 


方法三:
alt+shift+s +r

猜你喜欢

转载自blog.csdn.net/songyongchen/article/details/78854203
今日推荐