
/**     										Length.JAVA
 * A weight in traditional U.S. units (i.e., feet and inches)
 *
 * This is a simple version of lengths*
 * @author  Nancy Harris, James Madison
 * @version 3.0  
 */
    public class Length 
	 {
      private int feet;
      private int inches;
    	
    /**
     * Default Constructor
     */
       public Length()
      {
         feet = 0;
         inches = 0;
      }
   
    /**
     * Explicit Value Constructor
     *
     * @param feet  The number of feet (must be positive)
     * @param inches  The number of inches (must be positive)
     */
       public Length(int feet, int inches)
      {
         this.feet = feet;
         this.inches = inches;
      }
   	/** 
		 * @return Returns a string representation of this length
		 */
       public String toString()
      {
         String builder;
      	
         builder = "" + feet;
         if (feet == 1) builder += " foot and ";
         else builder += " feet and ";
      	
         builder += inches;
      	
         if (inches == 1) builder += " inch.";
         else builder += " inches.";
      	
         return builder;
      }
   } // end Length
