//
// Code that goes in TestFraction.java:
//
Fraction f1 = new Fraction( 5, 8 );
Fraction f2 = new Fraction( 1, 9 );
Fraction f3 = new Fraction();
// This time, addFraction is an instance method of the Fraction
// class, so we use the object f3's addFraction() method, i.e.,
// f3.addFraction().
f3.addFraction( f1, f2 ); // f3 holds the result of 5/8 + 1/9
System.out.println( f1 + " + " + f2 + " = " + f3);