// TestRectangle.java // TestRectangle demonstrates the use of Rectangle. public class TestRectangle { public static void main(String args[]) { Rectangle rect1 = new Rectangle(); Rectangle rect2 = new Rectangle(4.0,5.0); System.out.println(rect1.toString()); System.out.println(rect2.toString()); } // end main } // end TestRectangle