A

Admin • 828.03K Points
Coach

Q. Which method would you use to get the maximum value from a Stream?

  • (A) max()
  • (B) maximum()
  • (C) findMax()
  • (D) collectMax()

Explanation by: Admin
`max()` returns the maximum element according to a Comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.