Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Bank (List<Client> a){
- class PrintClientListener implements ClientRegistrationListener{
- @Override
- public void onClientAdded(Client c) {
- System.out.printf("New Client added.\nClient Info:\n%s",c.toString());
- }
- }
- class EmailNotificationListener implements ClientRegistrationListener{
- @Override
- public void onClientAdded(Client c) {
- System.out.printf("Notification email for client %s to be sent", c.getSalutation());
- }
- }
- class DebugListener {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement