eclipse automatically generate getters and setters code example
Example 1: eclipse create getter and setter
Press: "Alt + Shift + S"
Then choose: "Generate Getter and Setter"
Example 2: generate getter and setter in eclipse
Alt+Shift+S
Press: "Alt + Shift + S"
Then choose: "Generate Getter and Setter"
Alt+Shift+S