A

Admin • 831.35K Points
Coach

Q. Which method is used to sort elements of a Stream?

  • (A) sort()
  • (B) arrange()
  • (C) sorted()
  • (D) orderBy()

Explanation by: Admin
sorted() is used to sort elements in the natural or custom order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.