//********************************************************************
//  BoxDemo.java       Author: Rebecca Bruce
//
//  Demonstrates the functionality of the Box class.
//  Modify the class as described in comments below.
//********************************************************************

public class BoxDemo
{
   //-----------------------------------------------------------------
   //  The method main() creates two box objects and demonstrates 
   //  their functionality.
   //-----------------------------------------------------------------
   public static void main (String[] args)
   {

       // create a 2x2 box object
		 Box2D tom = new Box2D(2,2);

       // create a 4x3 box object
		 Box2D jerry = new Box2D(4,3);

       // Print the width and height of the 4x3 box to the monitor.
       // You must use the box object methods to acquire the width and
       // height values that are printed.
		 System.out.println("box width: " + jerry.getWidth() );
		 System.out.println("box height: " + jerry.getHeight() );

       // Change the height of the 2x2 box to be 5.
		 tom.setHeight(5);

       // Display the modified 2x2 box (it should now be a 2x5 box) using
		 // the display() method.
		 tom.display();

   }
}
