distinct ()是Java 8 中Stream 提供的方法,返回的是由该流中不同元素组成的流。distinct()使用hashCode() 和eqauls() 方法来获取不同的元素。
確定! 回上一頁