Is there a way to automatically create getter and setter in Eclipse?

Asked 2 years ago, Updated 2 years ago, 56 views

I'm developing an Android project. There are a lot of variables in the object It's so hard for me to make a getter and setter. Is there anything that does this automatically? I thought about it. If you have any, please tell me how.

eclipse android java

2022-09-22 15:02

1 Answers

1 Like this, press source on the top menu bar, and if you look down, click generate Getters and Setters.

2 Select the variable you want to create and press OK.


2022-09-22 15:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.