-1

I am doing an exercise in java that asks to calculate the area of a rectangle, if the usurer type some number smaller or equal that "0.0" should appear an error message, but this verification must be done in the settter method. Is that possible? If yes, how can I do it ?