Java 数组排序——如何使用 Arrays.sort() 升序或降序排列数组
Metadata
- Author: freeCodeCamp.org
- Full Title: Java 数组排序——如何使用 Arrays.sort() 升序或降序排列数组
- Category: articles
- URL: https://www.freecodecamp.org/chinese/news/java-sort-array-how-to-reverse-an-array-in-ascending-or-descending-order-with-arrays-sort/
Highlights
- Arrays.sort(arr, Collections.reverseOrder()); (View Highlight)