锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品中文字幕,亚洲av无码不卡,亚洲综合久久成人69http://www.tkk7.com/houlinyan/linda宸ヤ綔絎旇瀛愭爣棰?/description>zh-cnSat, 12 Jul 2025 11:08:39 GMTSat, 12 Jul 2025 11:08:39 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://sjmthanks.com" target="_blank">日本黄色动图免费在线观看</a>| <a href="http://0101av.com" target="_blank">国产精品亚洲AV三区</a>| <a href="http://wwwav800.com" target="_blank">久久久久久亚洲AV无码专区</a>| <a href="http://16lds.com" target="_blank">WWW免费视频在线观看播放</a>| <a href="http://5916733.com" target="_blank">亚洲成aⅴ人片久青草影院</a>| <a href="http://cnpc1002.com" target="_blank">亚洲激情中文字幕</a>| <a href="http://71caoxee.com" target="_blank">亚洲AV第一成肉网</a>| <a href="http://langya2255.com" target="_blank">亚洲a一级免费视频</a>| <a href="http://17soco.com" target="_blank">亚洲国产高清在线</a>| <a href="http://hljjlhl.com" target="_blank">亚洲AV无码国产精品永久一区</a>| <a href="http://hbqueena.com" target="_blank">欧美在线看片A免费观看</a>| <a href="http://sdzhly.com" target="_blank">亚洲人成图片网站</a>| <a href="http://www-84243.com" target="_blank">日韩免费视频播播</a>| <a href="http://btztjxc.com" target="_blank">亚洲日韩区在线电影</a>| <a href="http://4466n.com" target="_blank">99视频在线精品免费</a>| <a href="http://szgreater.com" target="_blank">亚洲成无码人在线观看</a>| <a href="http://445645.com" target="_blank">无码AV动漫精品一区二区免费 </a>| <a href="http://bjgjjrxy.com" target="_blank">嫖丰满老熟妇AAAA片免费看</a>| <a href="http://w5524.com" target="_blank">亚洲AV成人噜噜无码网站</a>| <a href="http://schygfz.com" target="_blank">无码日韩精品一区二区免费</a>| <a href="http://jjesqc.com" target="_blank">亚洲av无码成人精品区一本二本</a>| <a href="http://chinacmk.com" target="_blank">国产成人无码区免费网站</a>| <a href="http://cshjjc.com" target="_blank">日本二区免费一片黄2019</a>| <a href="http://9akk.com" target="_blank">亚洲欧洲国产综合</a>| <a href="http://www99383.com" target="_blank">99免费在线视频</a>| <a href="http://ivy-fund.com" target="_blank">免费一级做a爰片性色毛片</a>| <a href="http://zjztauto.com" target="_blank">91亚洲性爱在线视频</a>| <a href="http://microston.com" target="_blank">成年性生交大片免费看</a>| <a href="http://cin17.com" target="_blank">全部一级一级毛片免费看</a>| <a href="http://52ku6.com" target="_blank">亚洲va中文字幕无码久久不卡</a>| <a href="http://huianpawn.com" target="_blank">57pao一国产成视频永久免费</a>| <a href="http://yy885.com" target="_blank">亚洲国产精品无码成人片久久 </a>| <a href="http://0354888.com" target="_blank">美女黄网站人色视频免费国产 </a>| <a href="http://ddm88888.com" target="_blank">亚洲人成国产精品无码</a>| <a href="http://81am.com" target="_blank">99re视频精品全部免费</a>| <a href="http://77110524.com" target="_blank">亚洲色成人WWW永久网站</a>| <a href="http://6609929.com" target="_blank">日日躁狠狠躁狠狠爱免费视频</a>| <a href="http://xx2e.com" target="_blank">永久中文字幕免费视频网站</a>| <a href="http://chinashineway.com" target="_blank">久久国产精品免费一区二区三区</a>| <a href="http://xfmkt.com" target="_blank">亚洲成a人片在线观</a>| <a href="http://zhaoxinwo.com" target="_blank">美女内射毛片在线看免费人动物</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>