Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * renvoie le compte d'une banque de numéro donné
- *
- * @param numéro
- * numéro du compte recherché
- * @return compte bancaire ou null s'il n'existe pas
- */
- public CompteBancaire getCompte(String numéro){
- Set<String> setInt = comptes.keySet();
- Iterator<String> it = setInt.iterator();
- while(it.hasNext()){
- if (this.comptes.containsKey(numéro)) {
- return this.comptes.get(numéro);
- }
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement