CHAPTER5 - QnA #59
Unanswered
JoisFe
asked this question in
CHAPTER 6 스트림으로 데이터 수집 - Q&A
Replies: 1 comment
-
아래 의미 그대로 public interface Stream<T> extends BaseStream<T, Stream<T>> {
// (...)
T reduce(T identity, BinaryOperator<T> accumulator);
// (...)
<R, A> R collect(Collector<? super T, A, R> collector);
// (...)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CHAPTER5 - QnA
Q1) 스트림 메서드 중 collect와 reduce를 보면 스트림의 요소를 처리하여 데이터를 수집하는 작업에 사용 (reducing 연산) 되는 공통점이 있는데 이 두 메서드의 차이는 ? (각 메서드의 목적, 동작 방식을 기준으로)
Beta Was this translation helpful? Give feedback.
All reactions