public synchronized void accessed(Object object){
  historyList.remove(object);
  historyList.add(object);
}

public synchronized void accessed ( Object object ) { historyList . remove ( object ) ; historyList . add ( object ) ; }
adds object to history .
