double function ( ) { double loc0 = 0.0d ; for ( Rental loc1 : rentals ) { loc0 += loc1 . getMovie ( ) . getPriceCategory ( ) . getCharge ( loc1 . getRentalDays ( ) ) ; } return loc0 ; }
calculate the total charge the user has to pay for all his/her rentals . concode_field_sep String firstName concode_elem_sep Calendar birthdate concode_elem_sep String name concode_elem_sep int id concode_elem_sep boolean initialized concode_elem_sep List<Rental> rentals concode_field_sep void setName concode_elem_sep void checkIfFirstNameValid concode_elem_sep String getName concode_elem_sep int addRental concode_elem_sep List<Rental> getRentals concode_elem_sep int getId concode_elem_sep Calendar getBirthdate concode_elem_sep void setRentals concode_elem_sep boolean hasRentals concode_elem_sep void setFirstName concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep void setId concode_elem_sep String getFirstName