/** * Test our rational stuff. */ public class Rat { public static void main(String[] args) { SimpleInput eyes = new SimpleInput(); SimpleOutput pen = new SimpleOutput(); pen.print("Please enter a rational number and I will double it: "); MyReal r = new MyReal(eyes.readString()); pen.println("If you need to use this program, you'll be amazed to learn"); pen.println("that " + r + " times two is " + RationalUtilities.dubble(r) + "."); } // main(String[]) } // class Rat