R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector is used for weighted average calculations?

  • (A) averagingInt()
  • (B) reducing()
  • (C) teeing()
  • (D) collectingAndThen()

Explanation by: Ram Sharma
`teeing()` allows combining two collectors like summing weights and products for weighted average.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.