0 votes
in JAVA by

Which method is used to transform elements in a stream in Java?

a) map()

b) flatMap()

c) filter()

d) reduce()

1 Answer

0 votes
by

Answer: a) map()

Explanation: The map() method is used to transform elements in a stream in Java.

...