本帖最后由 陈团辉 于 2013-3-22 08:52 编辑
HashMap<<HashMap<key,value>,value2>
key,value,value2都是String类型
怎么按照相同的value排序啊
<("key1", "value1"),"a">,
<("key2", "value2"),"b">,
<("key3", "value1"),"c">,
<("key4", "value5"),"d">,
<("key5", "value2"),"e">
排序后是这样
<("key1", "value2"),"a">,
<("key3", "value2"),"c">,
<("key2", "value1"),"b">,
<("key5", "value1"),"e">,
<("key4", "value5"),"d">
就是里面的HashMap的值相等的话相邻放置
用其他映射也可以 |