how to write getter and setter methods in java eclipse code example Example: generate getter and setter in eclipse Alt+Shift+S