如果要使用 Stream 处理 Collection 中的数据,请在 Collection 实例上键入 Stream 方法。IntelliJ IDEA 将为您获取 Stream 实例。

Completing Streams