Advertisement
Guest User

Untitled

a guest
Jun 6th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import java.util.ArrayList;
  2.  
  3. public class Bank {
  4.  
  5.  
  6. private int bankId;
  7. private String bankName;
  8. private ArrayList<Account> allAccounts = new ArrayList<Account>();
  9.  
  10. public Bank(int bankId, String bankName, ArrayList<Account> allAccounts) {
  11. this.bankId = bankId;
  12. this.bankName = bankName;
  13. this.allAccounts = allAccounts;
  14. }
  15.  
  16. public String getBankName() {
  17. return bankName;
  18. }
  19.  
  20.  
  21. public int getBankId() {
  22. return bankId;
  23. }
  24.  
  25. public ArrayList<Account> getAllAccounts() {
  26. return allAccounts;
  27. }
  28.  
  29. public void setAllAccounts(ArrayList<Account> allAccounts) {
  30. this.allAccounts = allAccounts;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement