01. Method collect
Code:
<R, A> R collect(Collector<? super T, A, R> collector);
T: Input type
A: Container for storing data in the middle
R: Output type
The collect() method is a terminal method.
01. Method collect
Code:
<R, A> R collect(Collector<? super T, A, R> collector);
T: Input type
A: Container for storing data in the middle
R: Output type
The collect() method is a terminal method.