When a Comparator isn't available, the natural ordering of the elements is used to determine priority. If the elements don't implement the Comparable interface, then that is a run-time error.
在不能使用Comparator时,可以使用元素的自然顺序来确定优先级。
When a Comparator isn't available, the natural ordering of the elements is used to determine priority. If the elements don't implement the Comparable interface, then that is a run-time error.
在不能使用Comparator时,可以使用元素的自然顺序来确定优先级。
应用推荐