R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector applies a transformation after collecting to a list?

  • (A) collectingAndThen(toList(), transformation)
  • (B) mapping(..., toList())
  • (C) joining()
  • (D) summarizingInt()
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`collectingAndThen()` can apply a transformation after `toList()` collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.