**
使用Eclipse 快捷方式写Set,Get方法报错解决
**
报错信息:the operation is not applicable to the current selection.select a field which is not declared as type variable or a type that declares such fields
1.首先要声明属性,变量,private int age;(我就是没声明变量)
2.在**类的范围之内(就是类的括号内)**使用alt + shift + s ,选中Generate Getters and Setters …