public class Main {
    
    public static void main (String [] args) {

	String usageMessage =
	    "Usage: java Main int denom\n" +
	    "  int and denom should be integers; denom may not be zero.";
	
	if (args.length != 2) {
	    System.err.println(usageMessage);
	    System.exit(1);
	}

	int num=1, denom=1; // must initialize to avoid "might not..." error
	try {
	    num = Integer.parseInt(args[0]);
	    denom = Integer.parseInt(args[1]);
	} catch (NumberFormatException e) {
	    System.err.println(usageMessage);
	    System.exit(2);
	}

	Rational r1 = new Rational();
	Rational r2 = new Rational(num, denom);
	
    } // main

}

@@ -12,16 +12,62 @@
 s Main %7B
+ // implicit: public class Main extends object
 %0A    %0A  
@@ -658,16 +658,141 @@
  denom);
+%0A%0A%09System.out.println(%22r1 = %22 + r1); // implicit: r1.toString()%0A%09System.out.println(%22r2 = %22 + r2); // implicit: r2.toString()
 %0A%09%0A    %7D

add print statements to ex01 Main