Modify the Loan class in Listing 10.2 to throw IllegalArgumentException if the loan amount, interest rate, or

Question:

Modify the Loan class in Listing 10.2 to throw IllegalArgumentException if the loan amount, interest rate, or number of years is less than or equal to zero.

Listing

image

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: