Re: [numbers] Complex

2019-12-06 Thread Gilles Sadowski
Hi. Le ven. 6 déc. 2019 à 16:47, Alex Herbert a écrit : > > I think this method is redundant: > > public Complex multiply(final int factor) { > return new Complex(real * factor, imaginary * factor); > } > > given that there is: > > public Complex multiply(double factor) { > return new C

[numbers] Complex

2019-12-06 Thread Alex Herbert
I think this method is redundant: public Complex multiply(final int factor) {     return new Complex(real * factor, imaginary * factor); } given that there is: public Complex multiply(double factor) {     return new Complex(real * factor, imaginary * factor); } This would be equivalent after t