I have avoided using temperature parameter as it isn't used in original OP's version.
Thank youJunilu Lacar wrote:Nice one, Campbell, and I learned something new,
But all you have to do is change three letters I‑n‑t to six letters D‑o‑u‑b‑l‑e in the name of the class (and the same in the import) and it will workHowever, since OP is using double[], java.util.DoubleSummaryStatistics might be more appropriate.
That is the nice thing about good object programming (or in this case good functional programming): it is possible to make small changes to accommodate new requirements.A few minuste ago, I wrote:. . . all you have to do is . . .
Campbell Ritchie wrote:
That is the nice thing about good object programming (or in this case good functional programming): it is possible to make small changes to accommodate new requirements.A few minuste ago, I wrote:. . . all you have to do is . . .
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|