Advertisement
Guest User

Untitled

a guest
Jun 6th, 2020
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import java.util.ArrayList;
  2.  
  3. public class Main {
  4. //psvm
  5. public static void main(String[] args) {
  6. User user1 = new User("Jan","Przykladowy",1 );
  7. Account account1 = new Account("12345678901234567890123456","1234","Jan",user1);
  8.  
  9. User user2 = new User("Daniel", "Przyklad", 2);
  10. Account account2 = new Account("12345678900987654321123456","1213", "Daniel",user2);
  11.  
  12.  
  13.  
  14. ArrayList<Account> list = new ArrayList<Account>();
  15. list.add(account1);
  16. list.add(account2);
  17.  
  18. Bank bank1 = new Bank(3456,"PKO" , list);
  19.  
  20.  
  21.  
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement