Преглед на файлове

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