只要把update(p) 放入if语句中,包括else,就会出错。 Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator ...