java saving account exercise
java saving account exercise
SavingsAccount.modifyInterestRate(0.04);
saver1.calculateMonthlyInterest();
saver2.calculateMonthlyInterest();
System.out.println("Current balance of Saver1:"+
saver1.getSavingsBalance());
System.out.println("Current balance of Saver2:"+
saver2.getSavingsBalance());
SavingsAccount.modifyInterestRate(0.05);
saver1.calculateMonthlyInterest();
saver2.calculateMonthlyInterest();
System.out.println("Current balance of Saver1:"+
saver1.getSavingsBalance());
System.out.println("Current balance of Saver2:"+
saver2.getSavingsBalance());
}
}