k-joseph

Untitled

Nov 7th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. AMoney airTelMoneyUSer1 = new AMoney("0752000000", "0000", 800000);
  2. AMoney airTelMoneyUSer2 = new AMoney("0752000111", "1234", 200000);
  3. AMoney airTelMoneyUSer3 = new AMoney("0752111000", "2222", 50000);
  4.  
  5. ArrayList<String> airTelMoneyUserPins = new ArrayList<String>();
  6.  
  7. ArrayList<AMoney> aMoneyUSers = new ArrayList<AMoney>();
  8.  
  9. airTelMoneyUserPins.add(airTelMoneyUSer1.getPinCode());
  10. airTelMoneyUserPins.add(airTelMoneyUSer2.getPinCode());
  11. airTelMoneyUserPins.add(airTelMoneyUSer3.getPinCode());
  12.  
  13. aMoneyUSers.add(airTelMoneyUSer1);
  14. aMoneyUSers.add(airTelMoneyUSer2);
  15. aMoneyUSers.add(airTelMoneyUSer3);
  16.  
  17.  
  18. for (AMoney aMoneyUser : aMoneyUSers) {
  19. for (String pin : airTelMoneyUserPins) {
  20. if (pin == aMoneyUser.getPinCode()) {
  21. aMoneyUser.myAccount(pin);
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment