for (int i = 0; i < agencies.size(); i++) {
String an = (String) agencies.get(i);
System.out.println("Agency '" + an + "':");
List clients = ba.getClients(an);
for (int j = 0; j < clients.size(); j++) {
ClientId cid = (ClientId) clients.get(j);
System.out.println("\t- Client '" + cid + "':");
List accounts = ba.getAccounts(an, cid);
for (int k = 0; k < accounts.size(); k++) {
AccountInfo ai = (AccountInfo) accounts.get(k);
System.out.println("\t\t- Account " + ai.number + " : " + ai.solde);