jdk 05 .collect method source code analysis

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.

Guess you like

Origin blog.csdn.net/qq_38757863/article/details/132501438