Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. public Bank (List<Client> a){
  2.            
  3.         class PrintClientListener implements ClientRegistrationListener{
  4.  
  5.             @Override
  6.             public void onClientAdded(Client c) {
  7.                 System.out.printf("New Client added.\nClient Info:\n%s",c.toString());
  8.                 }
  9.             }
  10.         class EmailNotificationListener implements ClientRegistrationListener{
  11.  
  12.             @Override
  13.             public void onClientAdded(Client c) {
  14.                 System.out.printf("Notification email for client %s to be sent", c.getSalutation());
  15.                 }
  16.            
  17.             }
  18.         class DebugListener {
  19.            
  20.         }
  21.    
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement