1. Right-click on the IDEA input code interface :
2. Select Generate according to the icon
3. When the attribute has been named on the page you are on , it will be displayed after following the above steps:
Click Getter and Setter
4. After selecting the attributes that want to have set and get methods , click the ok button