在使用iterator的remove的时候出现了java.lang.IllegalStateException异常,原来是remove的第二次就会异常。iterator的remove后要调用next再可以remove,这个也是比较好理解的一个对象不可以remove多次。