JDK 8以上无需遍历Map使用removeIf()方法直接删除其中某个条目: priceMap.entrySet().removeIf( e -> e.getValue() .compareTo(Double.
確定! 回上一頁