Some developers may already be using these methods to save some time. So if you haven’t, it may save a few minutes of your time.
If you are creating a model class to store data with large number of variables, you may have manually created getters and setters for all those variables. This may help you to save some time.
Right click anywhere inside the class. Select
Generate -> Getter and Setter
Now select the variables for which the getters and setters should be generated. Now Android Studio automatically generates it for you.
Alt + Enter -> Generate -> Getter and Setter
Enjoy Coding 🙂