- 博客(3)
- 收藏
- 关注
原创 java.util.ConcurrentModificationException异常
具体原因请参考下方链接博客,此文章仅为我个人的简要总结笔记。ArrayList的remove()方法:会导致list的modCount加一,从而跟iterator的expectedModCount不一致,抛出异常:final void checkForComodification() { if (modCount != expectedModCount) throw ne...
2018-10-12 14:45:24 155
转载 String、StringBuffer和StringBuilder
String是字符常量,StringBuffer和StringBuilder是字符变量。执行速度来说:StringBuilder>StringBuffer>String以这段代码为例:String s = "asdf";s = s + 1 ;System.out.println(s) ; //asdf1JVM其实是这样解析的: 首先,创建...
2017-04-03 15:39:37 279
原创 Project 'Annotation' is not a J2SE 5.0 compliant project.
Project 'Annotation' is not a J2SE 5.0 compliant project.解决方法1:https://www.genuitec.com/forums/topic/quot-project-not-jdk-5-0-compliant-quot-sure-it-is-clo/解决方法2: Window > Preferences > Java > Com
2016-11-17 15:43:02 1586
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人