public class SavingsAccountTest { public static void main (String [] args) { SavingsAccount2 s = new SavingsAccount2(1000,10); s.applyInterest(); s.applyInterest(); s.applyInterest(); s.applyInterest(); s.applyInterest(); System.out.println("After interest: " + s.getBalance()); } }