📄 listing3.7.java
字号:
/**
* This method computes the payment for a loan based on
* the interest rate, the number of payment periods, and
* the loan amount.
*
* @param rate The interest rate per payment period
* @param numPayments The total number of payment periods
* @param loanAmount The present value of the loan
* @return The computed payment amount
*
* @throws InvalidLoanParameterException If one of the
* arguments is <= 0
*/
public static double computePayment( double rate, int numPayments,
double loanAmount ) throws InvalidLoanParameterException {
// compute and return the payment amount
...
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -