Page 1 of 1

About Question enthuware.ocpjp.v8.2.1898 :

Posted: Sun Mar 28, 2021 8:53 am
by jme_chg
Why does IntStream's average() return OptionalDouble but Collectors.averagingInt() returns a double? Any reason?

Re: About Question enthuware.ocpjp.v8.2.1898 :

Posted: Sun Mar 28, 2021 9:52 am
by admin
Not sure but most likely it is because of some theme they were following while designing the API.