public void calculateCpuMax(double time){
  cpuMax=Math.max(cpuMax,time);
}

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