Bear Bibeault wrote:
Shravan Payasam wrote:I can change the method this way.
And you feel that is acceptable?
Your second class's method could be easily written in terms of its others.
Rob Spoor wrote:Since when is 5 / 0 equal to 0? Just return Double.NaN for doubles and let the ArithmeticException be thrown for ints.