1 | /** |
2 | A class to test the BankAccount class. |
3 | */ |
4 | public class BankAccountTest |
5 | { |
6 | /** |
7 | Tests the methods of the BankAccount class. |
8 | @param args not used |
9 | */ |
10 | public static void main(String[] args) |
11 | { |
12 | BankAccount harrysChecking = new BankAccount(); |
13 | harrysChecking.deposit(2000); |
14 | harrysChecking.withdraw(500); |
15 | System.out.println(harrysChecking.getBalance()); |
16 | } |
17 | } |