热门标签
更多>
搜索结果
查询Tags标签: annualInterestRate,共有 1条记录-
(IllegalArgumentException异常)修改程序清单10-2中的Loan类,如果贷款总额、利率、年数小于或等于零,则抛出IllegalArgumentException异常
public class Loan {private double annualInterestRate;private int numberOfYears;private double loanAmount;private java.util.Date loanDate;public Loan() {this(2.5, 1, 1000);}public Loan(double annualInterestRate, int numberOfYears, double loanAmount) {t…
2021/5/16 20:25:42 人评论 次浏览