/**
 * @(#)SavingsAccountTest.java
 *
 * SavingsAccountTest application
 *
 * @author Kelvin Njuguna
 * @version 1.00 2012/4/24
 */

public class SavingsAccountTest {

    public static void main(String[] args)
        {

        double interest1,interest2;
        double newBalance1,newBalance2;


        SavingsAccount.modifyInterestRate(0.04);

        SavingsAccount saver1 = new savingsAccount(2000.00);
        SavingsAccount saver2 = new savingsAccount(3000.00);


        for(int=0;i < 12;i++);
        {
        system.out.printf("Month %d:\n",i+1);




         interest1 = calculateMonthlyInterest();
         interest2 = calculateMonthlyInterest();

          newBalance1=saver1.getBalance() + interest1;
          newBalance2=saver2.getBalance() + interest2;

          saver1.setBalance(newBalance1);
          saver2.setBalance(newBalance2);

        }


    }//end of main
}//end of class savingsAccountTest

If you are getting errors, You forgot to post the full text of the error messages.

    for(int i=0;i < 12;i++)
            {
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.