public void calculateExclusiveMax(double max){
  exclusiveMax=Math.max(exclusiveMax,max);
}

public void calculateExclusiveMax ( double max ) { exclusiveMax = Math . max ( exclusiveMax , max ) ; }
sets the maximum if the given value is bigger than the current value .
