Skip to content

Commit 1a65123

Browse files
committed
accidnetal duplicate
1 parent 3b6a1e3 commit 1a65123

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

source/ch6_definingclasses.ptx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ public Fraction add(Fraction otherFrac) {
307307
Integer newNum = otherFrac.getDenominator() * this.numerator +
308308
this.denominator * otherFrac.getNumerator(); // notice the use of this.
309309
Integer newDen = this.denominator * otherFrac.getDenominator(); // find the new denominator
310-
Integer newDen = this.denominator * otherFrac.getDenominator();
311310
Integer common = gcd(newNum, newDen); // find the greatest common divisor
312311
return new Fraction(newNum/common, newDen/common);
313312
}

0 commit comments

Comments
 (0)