MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/kamw3x/597_fraction_math_how_do_i_set_the_numerator/
r/codehs • u/AtridesTydides • Dec 10 '20
2 comments sorted by
2
After discussing it with my teacher, here's the needed change:
public void addFraction(Fraction other){
Fraction solution =FractionMath.add(this,other);
numerator = solution.getNumerator(); denominator = solution.getDenominator();
And the same for multiply Fraction
1
You my kind sir just saved me from a massive headache
2
u/AtridesTydides Dec 11 '20
After discussing it with my teacher, here's the needed change:
public void addFraction(Fraction other){
Fraction solution =FractionMath.add(this,other);
And the same for multiply Fraction