Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AMoney airTelMoneyUSer1 = new AMoney("0752000000", "0000", 800000);
- AMoney airTelMoneyUSer2 = new AMoney("0752000111", "1234", 200000);
- AMoney airTelMoneyUSer3 = new AMoney("0752111000", "2222", 50000);
- ArrayList<String> airTelMoneyUserPins = new ArrayList<String>();
- ArrayList<AMoney> aMoneyUSers = new ArrayList<AMoney>();
- airTelMoneyUserPins.add(airTelMoneyUSer1.getPinCode());
- airTelMoneyUserPins.add(airTelMoneyUSer2.getPinCode());
- airTelMoneyUserPins.add(airTelMoneyUSer3.getPinCode());
- aMoneyUSers.add(airTelMoneyUSer1);
- aMoneyUSers.add(airTelMoneyUSer2);
- aMoneyUSers.add(airTelMoneyUSer3);
- for (AMoney aMoneyUser : aMoneyUSers) {
- for (String pin : airTelMoneyUserPins) {
- if (pin == aMoneyUser.getPinCode()) {
- aMoneyUser.myAccount(pin);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment