[Solved] Boolean in Mutator Method

You’ll have to change the return type of your setter: public boolean setHeight(int newHeight) { if (1<=height && height<=10) { height = newHeight; return true; } else { return false; } } 4 solved Boolean in Mutator Method