Sample BankAccountTester.java for a BankAccount problem


public class BankAccountTester {

	public static void main(String[] args) {
		// mr. bautista opens a bank account with 1000 dollars
		BankAccount bautista = new BankAccount(1000);
		System.out.println(bautista.getBalance());
		bautista.deposit(3000);   // monthly paycheck
		System.out.println(bautista.getBalance());
		bautista.withdraw(5000);  // wants to buy an awesome guitar
		System.out.println(bautista.getBalance());
		bautista.withdraw(500);   // wants to buy my guitar
		System.out.println(bautista.getBalance());
	}

}