Login
Remember
Register
Ask a Question
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?
0
votes
asked
Jun 30, 2022
in
JAVA
by
sharadyadav1986
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
java8
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 30, 2022
by
sharadyadav1986
b) Stream.collect
...