getter and setter for java code example Example: java setter public setValue(value) { this.value = value; }