code: public void addNextValue(Object val) {
      String newVal = val.toString();
      if (this.maxVal == null || this.maxVal.compareTo(newVal) < 0) {
        this.maxVal = newVal;
      }
    }
docs: add a value to the aggregator
  
  @param val
  a string.