瀏覽代碼

Added notifiation alert for overdraft

Trinh Tong 6 年之前
父節點
當前提交
c4368a6db5
共有 2 個檔案被更改,包括 4 行新增3 行删除
  1. 1
    0
      src/main/java/rocks/zipcode/atm/CashMachine.java
  2. 3
    3
      src/main/java/rocks/zipcode/atm/bank/Bank.java

+ 1
- 0
src/main/java/rocks/zipcode/atm/CashMachine.java 查看文件

@@ -55,6 +55,7 @@ public class CashMachine {
55 55
 
56 56
     public void exit() {
57 57
         if (accountData != null) {
58
+            // exiting account -> for this we want to clear display account summary of transactions and then clear all fields
58 59
             accountData = null;
59 60
         }
60 61
     }

+ 3
- 3
src/main/java/rocks/zipcode/atm/bank/Bank.java 查看文件

@@ -17,15 +17,15 @@ public class Bank {
17 17
 
18 18
     public Bank() {
19 19
         accounts.put(1000, new BasicAccount(new AccountData(
20
-                1000, "Example 1", "example1@gmail.com", 500
20
+                1000, "Jared Walrus", "fisher@abe.com", 500
21 21
         )));
22 22
 
23 23
         accounts.put(2000, new PremiumAccount(new AccountData(
24
-                2000, "Example 2", "example2@gmail.com", 200
24
+                2000, "Biggie Younger", "southerKingdom@fisher.com", 200
25 25
         )));
26 26
 
27 27
         accounts.put(3000, new PremiumAccount(new AccountData(
28
-                2000, "Example 3", "example2@gmail.com", 100
28
+                3000, "Usurper TeeTay", "westernUnion@bank.com", 100
29 29
         )));
30 30
     }
31 31