The compiler is complaining because you cannot call compareTo on an int . The correct way to sort the map is the following: Map<String, Integer> treeMap ...
確定! 回上一頁