Kill Bugs

假如你写的一段程序中,正确率为0.9的代码有22行,那么这段代码合起来无BUG概率就不足0.1。

没有逻辑漏洞的方法是:每写一行代码都能以1的概率确定它的执行结果;如果不能确定,就测试。

LinkedHashMap Iterator

Exception in thread "main" java.util.ConcurrentModificationException 
    at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(Unknown Source)

Reference list:
http://forums.codeguru.com/printthread.php?t=446498
http://stackoverflow.com/questions/13435359/java-concurrent-modification-exception-how-to-deal-with
http://www.javacodegeeks.com/2011/05/avoid-concurrentmodificationexception.html
LinkedHashMap Iterator
原文地址:https://www.cnblogs.com/xiashu/p/3092060.html