question: public void addMessage ( String message ) { messages . addLast ( message ) ; if ( messages . size ( ) > MAX_HISTORY ) { messages . removeFirst ( ) ; } pointer = messages . size ( ) ; }
target:  Add a message to the history