for ( int i = 0; i < theCDCategoryValues.length; i++ )
{
if ( theCDCategoryValues[i].theCDCategory.equals( cdCategory ) )
{
return theCDCategoryValues[i].theBaseRentalPeriodDays;
}
}
return 0;
for ( int i = 0; i < theCDCategoryValues.length; i++ )
{
if ( theCDCategoryValues[i].theCDCategory.equals( cdCategory ) )
{
return theCDCategoryValues[i].theRentalFee;
}
}
return new Dollar( 0 );