You can generate getter and setter by following steps:
- Declare variables first.
- click on ALT+Insert on keyboard placing cursor down to variable declaration part
- now select constructor and press Ctrl+A on keyboard and click on Enter to create constructor.
- Now again placing cursor at next line of constructor closing brace , click ALT+INSERT and select getter and setter and again press CTRL+A to select all variables and hit Enter.
That's it. Happy coding!!