在使用iterator的remove的时候出现了java.lang.IllegalStateException异常,原来是remove的第二次就会异常。iterator的remove后要调用next再可以remove,这个也是比较好理解的一个对象不可以remove多次。
java.lang.IllegalStateException
原创mb652682b70d526 博主文章分类:Java ©著作权
©著作权归作者所有:来自51CTO博客作者mb652682b70d526的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Java Draw2d 目录
下一篇:java ant运行
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Bug处理 java.lang.IllegalStateException
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Bug Caused by java.lang. android java sed -
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoade
严重: Servlet.service() for servlet Persistent Faces Servlet threw exceptionjava.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframew
Java Apache Web Servlet Tomcat