-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.java
More file actions
45 lines (35 loc) · 986 Bytes
/
Copy pathBank.java
File metadata and controls
45 lines (35 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Contains information about the bank of the account. Used when printing receipts (so that the
* receipt format can be identified), and the UI of the app
*/
import java.util.ArrayList;
public class Bank {
private ArrayList<Account> accounts = new ArrayList<>();
private String bankName;
private int bankNumber;
private int branchCode;
public ArrayList<Account> getAccounts() {
return accounts;
}
public void setAccounts(ArrayList<Account> accounts) {
this.accounts = accounts;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public int getBankNumber() {
return bankNumber;
}
public void setBankNumber(int bankNumber) {
this.bankNumber = bankNumber;
}
public int getBranchCode() {
return branchCode;
}
public void setBranchCode(int branchCode) {
this.branchCode = branchCode;
}
}