/**
 * A driver that can be used to test
 * some aspects of the Length and Weight classes
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
 public class Driver2
 {
    /**
     * The entry point of the application
     *
     * @param args   The command line arguments
     */
    public static void main(String[] args)
    {
			Length               myLength;
			Weights               myWeight;


			myLength = new Length(2, 1);
			myWeight = new Weights(1, 9);

			System.out.println("Length");
			System.out.println("  Expected: " + "2 feet  1 inch");
			System.out.println("  Actual:   " + myLength);

			System.out.println("Weight");
			System.out.println("  Expected: " + "1 pound  9 ounces");
			System.out.println("  Actual:   " + myWeight);

			System.out.println("An Unusual Comparison");
			
			if (myLength.equals(myWeight))
			{
	    		System.out.println("  The weight equals the length");
			}
			else
			{
	    		System.out.println("  The weight doesn't equal the length");
			}
    }

} // end Driver2
