Просмотр исходного кода

Added notifiation alert for overdraft

Trinh Tong 6 лет назад
Родитель
Сommit
c4368a6db5

+ 1
- 0
src/main/java/rocks/zipcode/atm/CashMachine.java Просмотреть файл

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

+ 3
- 3
src/main/java/rocks/zipcode/atm/bank/Bank.java Просмотреть файл

17
 
17
 
18
     public Bank() {
18
     public Bank() {
19
         accounts.put(1000, new BasicAccount(new AccountData(
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
         accounts.put(2000, new PremiumAccount(new AccountData(
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
         accounts.put(3000, new PremiumAccount(new AccountData(
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