能不能这么用collections.sort(xxx.values())xxx表示hashmap对象
收起
不行,collections.sort方法没有Collection(xxx.values()类型)的重载。
报告相同问题?