public void addObserver(NotificationObserver observer){
  if (!observers.contains(observer)) {
    observers.add(observer);
  }
}

public void addObserver ( NotificationObserver observer ) { if ( ! observers . contains ( observer ) ) { observers . add ( observer ) ; } }
add a notification ' s observer .
