0 votes
in JAVA by
If you wanted to process a stream of names, extract the male names, and store them in a new list, what is the appropriate operation to be used?

a) Both Stream.reduce and Stream.collect

b) Stream.collect

c) Stream.reduce

d) Stream.filter

1 Answer

0 votes
by
b) Stream.collect

Related questions

0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
0 votes
asked May 22, 2022 in JAVA by AdilsonLima
...