Falling headlong off the tee() memory cliff
There's also Stream.broadcast() for push-based multi-consumer scenarios. Both require you to think about what happens when consumers run at different speeds — because that's a real concern that shouldn't be hidden.
,更多细节参见同城约会
* @param arr 待排序数组
Frequently recommended as alternatives