ListIterator<Map.Entry<Long, List<Long>>> li = new ArrayList<>(relationsMap.entrySet()).listIterator(relationsMap.size());
while(li.hasPrevious()) { // 如果还有前面的就往前遍历
Map.Entry<Long, List<Long>> previous = li.previous();
}
标签:map,遍历,java,relationsMap,li,previous,逆序
From: https://www.cnblogs.com/xiaoshahai/p/16665145.html