Xcuello 5 lat temu
rodzic
commit
ac14a03786

+ 3
- 3
src/main/java/rocks/zipcode/quiz5/collections/Bank.java Wyświetl plik

@@ -10,7 +10,7 @@ import java.util.ArrayList;
10 10
  */
11 11
 public class Bank {
12 12
 
13
-    ArrayList<BankAccount> bank = new ArrayList<>();
13
+    private ArrayList<BankAccount> bank = new ArrayList<>();
14 14
 
15 15
     public BankAccount removeBankAccountByIndex(Integer indexNumber) {
16 16
 
@@ -19,12 +19,12 @@ public class Bank {
19 19
 
20 20
     public void addBankAccount(BankAccount bankAccount) {
21 21
 
22
-        bank.add(bankAccount);
22
+        this.bank.add(bankAccount);
23 23
 
24 24
     }
25 25
 
26 26
     public Boolean containsBankAccount(BankAccount bankAccount) {
27 27
 
28
-        return bank.contains(bankAccount);
28
+        return this.bank.contains(bankAccount);
29 29
     }
30 30
 }