You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,28 +65,28 @@ public class LoanAccount extends Object {
65
65
importjava.lang.Object;
66
66
67
67
publicclassLoanAccountTestextendsObject {
68
-
publicstaticvoidmain (String[] args) {
69
-
LoanAccount loan1 =newLoanAccount( 5_000);
70
-
LoanAccount loan2 =newLoanAccount(31_000);
71
-
72
-
double interestRates[] = {0.01, 0.05};
73
-
LoanAccount loans[] = {loan1, loan2};
74
-
75
-
for (double interestRate : interestRates) {
76
-
System.out.printf("%n%nMonthly payments for loan1 of $5000.00 and loan2 of $31000.00 for 3, 5, and 6 year loans at %.0f%% interest.", interestRate *100);
System.out.printf("%n%nMonthly payments for loan1 of $5000.00 and loan2 of $31000.00 for 3, 5, and 6 year loans at %.0f%% interest.", interestRate *100);
0 commit comments