A

Admin • 828.03K Points
Coach

Q. Which method is used to convert a stream into an array?

  • (A) toArray()
  • (B) toList()
  • (C) toArrayList()
  • (D) collectArray()

Explanation by: Admin
`toArray()` collects the elements of the Stream into an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.