Do a reduction that simply returns the current value:Stream<T> stream; T last = stream.reduce((a, b) -> b).orElse(null); Read More
posted @ 2017-05-12 11:35 等风来。。 Views(168) Comments(0) Diggs(0)
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------