标签: java sorting treemap
如何按价值排序?以及我如何对此进行排序?请帮忙
TreeMap<Integer,Friend> friends = new TreeMap<Integer,Friend>(); friends.put(1,Vasya); friends.put(2,Katya); friends.put(3,Vitya); friends.put(4,Maria);