In Java 8, distinct() returns a stream of unique elements, and sorted() returns a stream consisting of elements in the sorted natural order.
確定! 回上一頁