Generate Getters And Setters In Eclipse IDE

To generate getters and setters, right-click on file, select “Source” and then select “Generate Getters and Setters…” as shown in Figure 1.1

Figure 1.1 Figure 1.1

Click Select All to create getters/setters for all fields as shown in Figure 1.2. You can choose individual fields as required.

Figure 1.2 Figure 1.2

Click Ok. Eclipse will create the getters and setters for you.


No comments yet.

Leave a Reply