Java Stream distinct ()方法distinct() 返回一个由流中不同元素组成的流。 distinct()是Stream 接口的方法。这个方法使用hashCode()和equals()方法来获取不同的元素。
確定! 回上一頁