/**
   A class to demonstrate a custom exception.
*/
public class CustomExceptions
{
   /**
      Tests the methods of the BankAccount class.
      @param args not used
   */
   public static void main(String[] args)
   {
      BankAccount harrysChecking = new BankAccount();
      harrysChecking.deposit(2000);
      harrysChecking.withdraw(5000);
      // The last statement is not executed since an exception has
      // terminated the program
      System.out.println(harrysChecking.getBalance());
   }
}

