adding getters and setters in eclipse code example Example: generate getter and setter in eclipse Alt+Shift+S