question: public void addQueryToHistory ( String sql ) { queryHistory . remove ( sql ) ; queryHistory . addFirst ( sql ) ; while ( historySize >= 0 && queryHistory . size ( ) > historySize ) { queryHistory . removeLast ( ) ; } }
target:  Adds the query to history.