The method sort(int[]) in the type Arrays is not applicable for the arguments (int[], Collections.re

The method sort(int[]) in the type Arrays is not applicable for the arguments (int[], Collections.reverseOrder()) Java中Arrays.sort()增加Comparator时,需要注意传入数组的格式 不能够使用int声明的数组,必须使用Integer声明的数组 例如   如果直接使用
相关文章
相关标签/搜索