Use an Iterator and remove the item with Iterator.remove() : 迭代器 « 集合数据结构 « JavaDemo Source and SupportHTM · 19 KBZH