/*****
 * TestFraction will use the Fraction class.
 */

public class TestFraction {

    public static void main( String[] args ){

	Fraction a = new Fraction(1,3);
	Fraction b = new Fraction(5,7);

	System.out.println(" a is ");
	a.printIt();

	System.out.println(" b is ");
	b.printIt();

	Fraction c;
	c = a.add(b);
	System.out.println(" the sum of a and b is ");
	c.printIt();

	c = a.subtract(b);
	System.out.println(" a - b is ");
	c.printIt();
	


    }

}


syntax highlighted by Code2HTML, v. 0.9.1