此API規定實體bean要實現comparable接口并重寫compareTo方法,為什么不將API改為Arrays.sort(Compatable[] com)呢?
JAVA 數組排序方法,Arrays.sort()方法疑問?
素胚勾勒不出你
2018-07-01 15:18:17