question: public void addObserver ( Observer observer ) { if ( observer == null ) { throw new NullPointerException ( ) ; } synchronized ( this ) { if ( ! observers . contains ( observer ) ) observers . add ( observer ) ; } }
target:  Adds the specified observer to the list of observers. If it is already registered, it is not added a second time.