<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">public class TestRatio {

    public static void main(String[] args) {

	Ratio r1, r2, r3;

	r1 = new Ratio();
	r2 = new Ratio(2);
	r3 = new Ratio(3, 4);

	// Replace the comments below with equivalent Java statements:

	// r1 = r1 divided by r3
	// r2 = r2 times r3
	// r3 = r2 minus r1

	// print "r1 = " followed by the value of r1
	// print "r2 = " followed by the value of r2
	// print "r3 = " followed by the value of r3
	// print "1/r3 = " followed by the value of r3's reciprocal
    }
}
</pre></body></html>