我們也可以使用Java 8 的Stream sorted() API.來對List做排序。 有兩個選項: sorted() –自然排序,前提必須要實作Comparable 介面。 sorted(Comparator<? super T> ...
確定! 回上一頁