map循环中删除元素报错ConcurrentModificationException

DDD / 2023-05-10 / 原文

map的循环中,使用remove(key)删除报错,

经网上查询可使用迭代器删除,记录下问题