锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲校园春色另类激情,亚洲精品视频在线,久久亚洲国产精品五月天婷http://www.tkk7.com/houlinyan/linda宸ヤ綔絎旇瀛愭爣棰?/description>zh-cnSun, 11 May 2025 10:29:29 GMTSun, 11 May 2025 10:29:29 GMT60urlshttp://www.tkk7.com/houlinyan/archive/2009/08/24/292445.htmllindalindaMon, 24 Aug 2009 13:05:00 GMThttp://www.tkk7.com/houlinyan/archive/2009/08/24/292445.htmlhttp://www.tkk7.com/houlinyan/comments/292445.htmlhttp://www.tkk7.com/houlinyan/archive/2009/08/24/292445.html#Feedback0http://www.tkk7.com/houlinyan/comments/commentRss/292445.htmlhttp://www.tkk7.com/houlinyan/services/trackbacks/292445.html

linda 2009-08-24 21:05 鍙戣〃璇勮
]]>
java璋冪敤鍏朵粬紼嬪簭鐨勯棶棰?/title><link>http://www.tkk7.com/houlinyan/archive/2008/10/09/233335.html</link><dc:creator>linda</dc:creator><author>linda</author><pubDate>Thu, 09 Oct 2008 05:32:00 GMT</pubDate><guid>http://www.tkk7.com/houlinyan/archive/2008/10/09/233335.html</guid><wfw:comment>http://www.tkk7.com/houlinyan/comments/233335.html</wfw:comment><comments>http://www.tkk7.com/houlinyan/archive/2008/10/09/233335.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/houlinyan/comments/commentRss/233335.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/houlinyan/services/trackbacks/233335.html</trackback:ping><description><![CDATA[     鎽樿: 澶у閮界煡閬搄ava璋冪敤cmd 鐢ㄧ殑鏄疪untime鐨別xec()鏂規硶銆傝鏂規硶鏈緇堥噸鍚竴涓繘紼嬪幓鎵ц鍛戒護錛屽洜涓鴻鏂規硶鏈緇堣皟鐢ㄤ簡ProcessBuilder錛?聽public聽Process聽exec(String[]聽strings,聽String[]聽strings_2_,聽File聽file)2聽聽聽聽throws聽IOException聽{3聽聽聽聽return聽new聽ProcessBuil...  <a href='http://www.tkk7.com/houlinyan/archive/2008/10/09/233335.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/houlinyan/aggbug/233335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/houlinyan/" target="_blank">linda</a> 2008-10-09 13:32 <a href="http://www.tkk7.com/houlinyan/archive/2008/10/09/233335.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦ㄥ綰跨▼鐨勬儏鍐典笅鏄敱Iterator閬嶅巻淇敼闆嗗悎瀵硅薄錛屾姤ConcurrentModificationException()寮傚父鐨勬牴鍥犲垎鏋愩?/title><link>http://www.tkk7.com/houlinyan/archive/2008/04/01/189924.html</link><dc:creator>linda</dc:creator><author>linda</author><pubDate>Tue, 01 Apr 2008 01:56:00 GMT</pubDate><guid>http://www.tkk7.com/houlinyan/archive/2008/04/01/189924.html</guid><wfw:comment>http://www.tkk7.com/houlinyan/comments/189924.html</wfw:comment><comments>http://www.tkk7.com/houlinyan/archive/2008/04/01/189924.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/houlinyan/comments/commentRss/189924.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/houlinyan/services/trackbacks/189924.html</trackback:ping><description><![CDATA[<span style="font-size: 10pt">         鍦ㄥ綰跨▼涓嬩嬌鐢↖terator鏉ヨ凱浠e璞℃椂錛屾諱細鍖匔oncurrentModificationException();寮傚父錛岀粡榪囨垜瀵筶ist鍜孖terator鐩稿叧婧愮爜鐨勫垎鏋愶紝緇堜簬鎼炴槑鐧戒簡榪欎釜闂錛?nbsp;<br />          涓嬮潰緇撳悎婧愪唬鐮佹潵璁ㄨ榪欎釜闂錛?br /> <br />           1銆佸綋鎴戜滑璋冪敤涓涓狶ist鐨刬terator鏃訛紝鍏跺疄榪斿洖鐨勫茍涓嶆槸Itr瀵硅薄錛圛terator鏄竴涓帴鍙o級錛岃鐪嬩唬鐮侊細<br /> </span> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin-left: 10px; border-left: #cccccc 1px solid; width: 83.82%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; height: 64px; background-color: #eeeeee" align="left"><span style="font-size: 10pt"><span style="color: #008080">1</span><img id="Codehighlighter1_32_55_Open_Image" onclick="this.style.display='none'; Codehighlighter1_32_55_Open_Text.style.display='none'; Codehighlighter1_32_55_Closed_Image.style.display='inline'; Codehighlighter1_32_55_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_32_55_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_32_55_Closed_Text.style.display='none'; Codehighlighter1_32_55_Open_Image.style.display='inline'; Codehighlighter1_32_55_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">public</span><span style="color: #000000"> Iterator</span><span style="color: #000000"><</span><span style="color: #000000">E</span><span style="color: #000000">></span><span style="color: #000000"> iterator() </span><span id="Codehighlighter1_32_55_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_32_55_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span><span style="font-size: 10pt"><span style="color: #000000"> Itr();<br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />  }</span></span></span></div> <span style="font-size: 10pt">       <br />        2銆佸湪Itr綾諱腑鏈夎繖涔堜竴鍙ヨ瘽  int expectedModCount = modCount;棣栧厛璁蹭竴涓嬭繖涓や釜鍙橀噺鐨勫惈涔夛細<br />              expectedModCount 錛氬垱寤哄綋鍓嶇殑Itr瀵硅薄鏃墮泦鍚堝璞¤淇敼鐨勬鏁般備粬鏄疘tr鐨勫彉閲忋?br />              modCount錛氳褰曢泦鍚堝璞′粠鍒涘緩鍒板綋鍓嶆椂闂磋鍋氫慨鏀圭殑嬈℃暟銆傦紙闆嗗悎姣忚繘琛屼竴嬈″鍒犳敼鏌ラ兘浼氫嬌modCount錛夛紝浠栨槸Itr鐨勫閮ㄧ被AbstractList<br />              鐨勫彉閲忥紝涓旇鍙橀噺鍦?nbsp;AbstractList涓濡傛淇グprotected transient int modCount = 0; <br />             鍙﹀錛孖tr鑷繁瀵歸泦鍚堝璞¤繘琛屼簡淇敼鍚庯紝浠栦細緇存寔expectedModCount 鍜宮odCount鐨勪繚鎸佺浉絳夛紝璇風湅浠ヤ笅浠g爜 </span> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-size: 10pt"><span style="color: #008080"> 1</span> <span style="color: #008000">//</span><span style="color: #008000">Itr鐨勫垹闄ゆ柟娉?/span></span><span style="color: #008000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080"> 2</span> <span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span></span><span style="font-size: 10pt"><span style="color: #000000"> remove() {<br /> </span><span style="color: #008080"> 3</span> <span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (lastRet </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span></span><span style="font-size: 10pt"><span style="color: #000000">)<br /> </span><span style="color: #008080"> 4</span> <span style="color: #000000">        </span><span style="color: #0000ff">throw</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span><span style="font-size: 10pt"><span style="color: #000000"> IllegalStateException();<br /> </span><span style="color: #008080"> 5</span> </span><span style="font-size: 10pt"><span style="color: #000000">            checkForComodification();<br /> </span><span style="color: #008080"> 6</span> </span><span style="color: #000000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080"> 7</span> <span style="color: #000000">        </span><span style="color: #0000ff">try</span></span><span style="font-size: 10pt"><span style="color: #000000"> {<br /> </span><span style="color: #008080"> 8</span> <span style="color: #000000">        AbstractList.</span><span style="color: #0000ff">this</span></span><span style="font-size: 10pt"><span style="color: #000000">.remove(lastRet);<br /> </span><span style="color: #008080"> 9</span> <span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (lastRet </span><span style="color: #000000"><</span></span><span style="font-size: 10pt"><span style="color: #000000"> cursor)<br /> </span><span style="color: #008080">10</span> <span style="color: #000000">            cursor</span><span style="color: #000000">--</span></span><span style="font-size: 10pt"><span style="color: #000000">;<br /> </span><span style="color: #008080">11</span> <span style="color: #000000">        lastRet </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span></span><span style="font-size: 10pt"><span style="color: #000000">;<br /> </span><span style="color: #008080">12</span> <span style="color: #000000">        expectedModCount </span><span style="color: #000000">=</span></span><span style="font-size: 10pt"><span style="color: #000000"> modCount;<br /> </span><span style="color: #008080">13</span> <span style="color: #000000">        } </span><span style="color: #0000ff">catch</span></span><span style="font-size: 10pt"><span style="color: #000000">(IndexOutOfBoundsException e) {<br /> </span><span style="color: #008080">14</span> <span style="color: #000000">        </span><span style="color: #0000ff">throw</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span><span style="font-size: 10pt"><span style="color: #000000"> ConcurrentModificationException();<br /> </span><span style="color: #008080">15</span> </span><span style="font-size: 10pt"><span style="color: #000000">        }<br /> </span><span style="color: #008080">16</span> <span style="color: #000000">    }</span></span></div> <br /> <span style="font-size: 10pt">            鍦ㄤ唬鐮佺殑12琛岋紝Itr淇濊瘉浜唀xpectedModCount 鍜宮odCount鍊肩殑鐩哥瓑 錛宮odCount鐨勫煎彂鐢熶簡鏀瑰彉鍚楋紝浠栨敼鍙樹簡錛屽甫浠g爜鐨勭8琛屾敼鍙樼殑錛岃鐪嬫澶勭殑浠g爜錛?br />           </span> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-size: 10pt"><span style="color: #008080"> 1</span><img id="Codehighlighter1_27_308_Open_Image" onclick="this.style.display='none'; Codehighlighter1_27_308_Open_Text.style.display='none'; Codehighlighter1_27_308_Closed_Image.style.display='inline'; Codehighlighter1_27_308_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_27_308_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_27_308_Closed_Text.style.display='none'; Codehighlighter1_27_308_Open_Image.style.display='inline'; Codehighlighter1_27_308_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #0000ff">public</span><span style="color: #000000"> E remove(</span><span style="color: #0000ff">int</span><span style="color: #000000"> index) </span><span id="Codehighlighter1_27_308_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_27_308_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 2</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    RangeCheck(index);<br /> </span><span style="color: #008080"> 3</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    modCount</span><span style="color: #000000">++</span></span><span style="font-size: 10pt"><span style="color: #000000">;<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    E oldValue </span><span style="color: #000000">=</span></span><span style="font-size: 10pt"><span style="color: #000000"> elementData[index];<br /> </span><span style="color: #008080"> 6</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> numMoved </span><span style="color: #000000">=</span><span style="color: #000000"> size </span><span style="color: #000000">-</span><span style="color: #000000"> index </span><span style="color: #000000">-</span><span style="color: #000000"> </span><span style="color: #000000">1</span></span><span style="font-size: 10pt"><span style="color: #000000">;<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> (numMoved </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">0</span></span><span style="font-size: 10pt"><span style="color: #000000">)<br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        System.arraycopy(elementData, index</span><span style="color: #000000">+</span><span style="color: #000000">1</span></span><span style="font-size: 10pt"><span style="color: #000000">, elementData, index,<br /> </span><span style="color: #008080">10</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                 numMoved);<br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    elementData[</span><span style="color: #000000">--</span><span style="color: #000000">size] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000"> Let gc do its work</span></span><span style="color: #008000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080">12</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span></span><span style="color: #000000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080">13</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">return</span></span><span style="font-size: 10pt"><span style="color: #000000"> oldValue;<br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span></span></div> <br /> <span style="font-size: 10pt">           鍦ㄤ唬鐮佺殑絎洓琛宮odCount鍙戠敓浜嗘敼鍙樸?nbsp;鐢辨鍙互鐪嬪嚭錛屽湪鎴戜滑璋冪敤闆嗗悎瀵硅薄鐨刬terator()鏂規硶鐨剅emove鏃舵諱細浣縧ist鐨刴odCount鐨勫艱嚜澧?錛屼絾鏄疘tr浼氳嚜宸辯淮鎶よ鍊煎拰expectedModCount 鐨勪竴鑷淬?br />        3銆佽瘯闂細濡傛灉expectedModCount 鍜宮odCount鐨勫煎鏋滀笉鐩哥瓑錛屼細鏈変粈涔堥棶棰樺憿錛岃繖灝辨槸鎶oncurrentModificationException();寮傚父鐨勫師鍥犳墍鍦紝璇峰厛鐪婭tr鐨刵ext()鏂規硶鍜宯ext()璋冪敤鐨勬柟娉?br /> </span> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-size: 10pt"><span style="color: #008080"> 1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #008000">//</span><span style="color: #008000">Itr鐨刵ext鏂規硶錛?/span></span><span style="color: #008000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080"> 2</span><span style="color: #008000"><img id="Codehighlighter1_30_260_Open_Image" onclick="this.style.display='none'; Codehighlighter1_30_260_Open_Text.style.display='none'; Codehighlighter1_30_260_Closed_Image.style.display='inline'; Codehighlighter1_30_260_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_30_260_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_30_260_Closed_Text.style.display='none'; Codehighlighter1_30_260_Open_Image.style.display='inline'; Codehighlighter1_30_260_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> E next() </span><span id="Codehighlighter1_30_260_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_30_260_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 3</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            checkForComodification();<br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img id="Codehighlighter1_79_147_Open_Image" onclick="this.style.display='none'; Codehighlighter1_79_147_Open_Text.style.display='none'; Codehighlighter1_79_147_Closed_Image.style.display='inline'; Codehighlighter1_79_147_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_79_147_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_79_147_Closed_Text.style.display='none'; Codehighlighter1_79_147_Open_Image.style.display='inline'; Codehighlighter1_79_147_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_79_147_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_79_147_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        E next </span><span style="color: #000000">=</span></span><span style="font-size: 10pt"><span style="color: #000000"> get(cursor);<br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        lastRet </span><span style="color: #000000">=</span><span style="color: #000000"> cursor</span><span style="color: #000000">++</span></span><span style="font-size: 10pt"><span style="color: #000000">;<br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span></span><span style="font-size: 10pt"><span style="color: #000000"> next;<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img id="Codehighlighter1_184_257_Open_Image" onclick="this.style.display='none'; Codehighlighter1_184_257_Open_Text.style.display='none'; Codehighlighter1_184_257_Closed_Image.style.display='inline'; Codehighlighter1_184_257_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_184_257_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_184_257_Closed_Text.style.display='none'; Codehighlighter1_184_257_Open_Image.style.display='inline'; Codehighlighter1_184_257_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span></span></span><span style="font-size: 10pt"><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000">(IndexOutOfBoundsException e) </span><span id="Codehighlighter1_184_257_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_184_257_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 9</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        checkForComodification();<br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">throw</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span><span style="font-size: 10pt"><span style="color: #000000"> NoSuchElementException();<br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span></span><span style="color: #000000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span></span><span style="color: #000000"><br /> </span><span style="color: #008080"><span style="font-size: 10pt">13</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">checkForComodification()鏂規硶錛?/span></span><span style="color: #008000"><br /> </span><span style="font-size: 10pt"><span style="color: #008080">15</span><span style="color: #008000"><img id="Codehighlighter1_329_418_Open_Image" onclick="this.style.display='none'; Codehighlighter1_329_418_Open_Text.style.display='none'; Codehighlighter1_329_418_Closed_Image.style.display='inline'; Codehighlighter1_329_418_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_329_418_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_329_418_Closed_Text.style.display='none'; Codehighlighter1_329_418_Open_Image.style.display='inline'; Codehighlighter1_329_418_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">final</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> checkForComodification() </span><span id="Codehighlighter1_329_418_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span></span><span id="Codehighlighter1_329_418_Open_Text"><span style="font-size: 10pt"><span style="color: #000000">{<br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (modCount </span><span style="color: #000000">!=</span></span><span style="font-size: 10pt"><span style="color: #000000"> expectedModCount)<br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">throw</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span><span style="font-size: 10pt"><span style="color: #000000"> ConcurrentModificationException();<br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span></span><span style="color: #000000"><br /> </span><span style="color: #008080"><span style="font-size: 10pt">19</span></span><span style="font-size: 10pt"><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    }<br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span></div> <span style="font-size: 10pt">    鍦╪ext鏂規硶鐨勪竴寮濮嬫樉紺鴻皟鐢ㄤ簡checkForComodification()鏂規硶錛堣絎笁琛岋級錛屽湪checkForComodification()鏂規硶涓仛鐨勫伐浣滃氨鏄瘮杈僥xpectedModCount 鍜宮odCount鐨勫兼槸鍚︾浉絳夛紝濡傛灉涓嶇浉絳夛紝灝辮涓鴻繕鏈夊叾浠栧璞℃鍦ㄥ褰撳墠鐨凩ist榪涜鎿嶄綔錛岄偅涓氨浼氭姏鍑篊oncurrentModificationException寮傚父銆?br />        緇忚繃浠ヤ笂鐨勫垎鏋愶紝鍙戠幇鎶涘嚭ConcurrentModificationException寮傚父澶勪簬璋冪敤next()鏂規硶鏃訛紝姣旇緝expectedModCount 鍜宮odCount鐨勫鹼紝濡傛灉涓や釜鍊間笉鐩哥瓑錛屽氨浼氭姏鍑哄紓甯革紝鐒惰屽湪浠涔堟儏鍐典笅浼氫嬌expectedModCount 鍜宮odCount鐨勫間笉鐩哥瓑鍛紝鍙湁鍦ㄤ袱涓狪tr鍚屾椂瀵逛竴涓猯ist榪涜鎿嶄綔鐨勬椂鍊欐墠浼氬嚭鐜拌繖鏍風殑闂錛屾墍浠ュ湪浠ュ悗鐨勭紪鐮佽繃紼嬩腑鍦ㄦ槸鐢盜terator榪涜remove()鏃朵竴瀹氳鑰冭檻鏄惁鏃跺綰跨▼鐨勶紝濡傛灉鏄涓嶈鐢↖terator榪涜remove錛堬級錛岃屽簲璇ヤ嬌鐢↙ist鐨剅emove鏂規硶榪涜銆?</span> <img src ="http://www.tkk7.com/houlinyan/aggbug/189924.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/houlinyan/" target="_blank">linda</a> 2008-04-01 09:56 <a href="http://www.tkk7.com/houlinyan/archive/2008/04/01/189924.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://cuitccol.com" target="_blank">久久久久久久久久久免费精品</a>| <a href="http://pc521.com" target="_blank">亚洲精品私拍国产福利在线</a>| <a href="http://szjmlr.com" target="_blank">亚洲色成人四虎在线观看</a>| <a href="http://147v.com" target="_blank">又大又硬又爽又粗又快的视频免费</a>| <a href="http://773311h.com" target="_blank">亚洲国产精品VA在线观看麻豆 </a>| <a href="http://gzbaida.com" target="_blank">永久免费观看的毛片的网站</a>| <a href="http://eaivan.com" target="_blank">亚洲人配人种jizz</a>| <a href="http://6969aaa.com" target="_blank">成视频年人黄网站免费视频</a>| <a href="http://zgjzysfc.com" target="_blank">久久精品国产亚洲AV忘忧草18</a>| <a href="http://cqyouyongpx.com" target="_blank">性短视频在线观看免费不卡流畅</a>| <a href="http://maomaots.com" target="_blank">亚洲第一成年网站大全亚洲</a>| <a href="http://jst-hosp.com" target="_blank">青青久在线视频免费观看</a>| <a href="http://yiqigxfc.com" target="_blank">丁香婷婷亚洲六月综合色</a>| <a href="http://564ka.com" target="_blank">国产美女被遭强高潮免费网站</a>| <a href="http://zmtme.com" target="_blank">香港特级三A毛片免费观看</a>| <a href="http://10242016.com" target="_blank">又爽又黄无遮挡高清免费视频 </a>| <a href="http://www19977.com" target="_blank">亚洲av无码专区首页</a>| <a href="http://wwwby1378.com" target="_blank">国产一精品一aⅴ一免费</a>| <a href="http://znboxcdn107.com" target="_blank">一级女性全黄久久生活片免费</a>| <a href="http://guakao88.com" target="_blank">中文字幕亚洲综合久久男男</a>| <a href="http://by8847.com" target="_blank">a级成人毛片免费视频高清</a>| <a href="http://yg36.com" target="_blank">亚洲视频国产精品</a>| <a href="http://xww678.com" target="_blank">免费无码A片一区二三区</a>| <a href="http://g8zb.com" target="_blank">精品久久亚洲一级α</a>| <a href="http://bovch.com" target="_blank">亚洲色欲久久久综合网</a>| <a href="http://350725.com" target="_blank">久久久久久夜精品精品免费啦</a>| <a href="http://www84847.com" target="_blank">亚洲伊人久久大香线蕉影院</a>| <a href="http://bx85.com" target="_blank">永久免费无码网站在线观看</a>| <a href="http://miyatb.com" target="_blank">九九久久国产精品免费热6</a>| <a href="http://holdengong.com" target="_blank">亚洲av无码一区二区乱子伦as </a>| <a href="http://avqvod.com" target="_blank">亚洲国产成人精品无码区在线秒播</a>| <a href="http://kkk28.com" target="_blank">成人免费毛片内射美女APP</a>| <a href="http://8099456.com" target="_blank">免费人成动漫在线播放r18</a>| <a href="http://2c06xyz.com" target="_blank">国产亚洲精品va在线</a>| <a href="http://87fulitv.com" target="_blank">免费99精品国产自在现线</a>| <a href="http://612662.com" target="_blank">美女视频黄a视频全免费网站一区 美女视频黄a视频全免费网站色 </a>| <a href="http://54vpn.com" target="_blank">4444亚洲国产成人精品</a>| <a href="http://51comcomcom.com" target="_blank">久久WWW色情成人免费观看</a>| <a href="http://j8j8x.com" target="_blank">一级一片免费视频播放</a>| <a href="http://6217c.com" target="_blank">亚洲国产精品人久久电影</a>| <a href="http://www65axax.com" target="_blank">免费国产真实迷j在线观看</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>