mark, is there time to sort out. Prior did not pay attention, mr today with this topN actually take effect better.
TreeMap
map.lastEntry() //获取到treeMap中的第一个Entry或者最后一个Entry
map.remove(map.firstKey()) //获取最后一个key
map.lastEntry().getValue() //获取最后一个key对应的的值
map.remove(map.firstKey() //倒叙