A

Admin • 802.91K Points
Coach

Q. Which method is used to transform elements in a Stream?

  • (A) filter()
  • (B) map()
  • (C) forEach()
  • (D) collect()

Explanation by: Admin
map() is used to transform each element in the stream.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.