锘??xml version="1.0" encoding="utf-8" standalone="yes"?>尤物yw午夜国产精品视频明星,国内成人精品视频,欧美日韩国产在线观看http://www.aygfsteel.com/quaff/category/8060.html椋炶浘鎵戠伀zh-cnWed, 28 Feb 2007 04:09:39 GMTWed, 28 Feb 2007 04:09:39 GMT60瑙e喅Tomcat5鐨刄RL涓轟腑鏂囩殑闂http://www.aygfsteel.com/quaff/articles/33484.htmlquaffquaffFri, 03 Mar 2006 07:57:00 GMThttp://www.aygfsteel.com/quaff/articles/33484.htmlhttp://www.aygfsteel.com/quaff/comments/33484.htmlhttp://www.aygfsteel.com/quaff/articles/33484.html#Feedback0http://www.aygfsteel.com/quaff/comments/commentRss/33484.htmlhttp://www.aygfsteel.com/quaff/services/trackbacks/33484.html

quaff 2006-03-03 15:57 鍙戣〃璇勮
]]>
涓涓垎鍓插瓧絎︿覆鐨勭畻娉?/title><link>http://www.aygfsteel.com/quaff/articles/33478.html</link><dc:creator>quaff</dc:creator><author>quaff</author><pubDate>Fri, 03 Mar 2006 07:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/quaff/articles/33478.html</guid><wfw:comment>http://www.aygfsteel.com/quaff/comments/33478.html</wfw:comment><comments>http://www.aygfsteel.com/quaff/articles/33478.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/quaff/comments/commentRss/33478.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/quaff/services/trackbacks/33478.html</trackback:ping><description><![CDATA[鎶婁竴涓瓧絎︿覆鎸変竴瀹氱殑闀垮害鍒嗗壊鎴愬孌?閲岄潰鐨勪腑鏂囦笉鑳借鍒嗗紑錛屾瘮濡傜煭淇″彧鑳?40涓瓧鑺?鍥犳涓鏉¢暱鐭俊闇瑕佸垎寮鏉ュ彂<BR> <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="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> String[] split(String string, </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> size) {<BR>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (size </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">)<BR>            </SPAN><SPAN style="COLOR: #0000ff">throw</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> IllegalArgumentException(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">鏈灝忛暱搴︿負(fù)涓や釜瀛楄妭</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR>        </SPAN><SPAN style="COLOR: #0000ff">byte</SPAN><SPAN style="COLOR: #000000">[] bytes </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> string.getBytes();<BR>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (bytes.length </SPAN><SPAN style="COLOR: #000000"><=</SPAN><SPAN style="COLOR: #000000"> size)<BR>            </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> String[] { string };<BR>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍒嗘垚鐨勬潯鏁頒笉紜畾(鏁撮櫎鐨勬儏鍐典笅涔熻浼?xì)澶氬囖Z竴鏉?,鎵浠ュ厛鐢╨ist鍐嶈漿鍖栦負(fù)array</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">        List list </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> ArrayList();<BR>        </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> offset </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍋忕Щ閲?涔熷氨鏄埅鍙栫殑瀛楃涓茬殑棣栧瓧鑺傜殑浣嶇疆</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> length </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鎴彇鐨勫瓧絎︿覆鐨勯暱搴?鍙兘鏄痵ize,鍙兘鏄痵ize-1</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> position </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍙兘鐨勬埅鍙栫偣,鏍規(guī)嵁鍏蜂綋鎯呭喌鍒ゆ柇鏄笉鏄湪姝ゆ埅鍙?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000"> (position </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> bytes.length) {<BR>            position </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> offset </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> size;<BR>            </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (position </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> bytes.length) {<BR>                </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鏈鍚庝竴鏉?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">                String s </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> String(bytes, offset, bytes.length </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> offset);<BR>                list.add(s);<BR>                </SPAN><SPAN style="COLOR: #0000ff">break</SPAN><SPAN style="COLOR: #000000">;<BR>            }<BR>            </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (bytes[position </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">] </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000"><BR>                    </SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000"> (bytes[position </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">] </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">&&</SPAN><SPAN style="COLOR: #000000"> bytes[position </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">] </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">))<BR>                </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鎴柇鐐規(guī)槸瀛楁瘝,鎴栬呮槸姹夊瓧</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">                length </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> size;<BR>            </SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR>                </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鎴柇鐐瑰湪姹夊瓧涓棿</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #000000">                length </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: #000000">1</SPAN><SPAN style="COLOR: #000000">;<BR>            String s </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> String(bytes, offset, length);<BR>            list.add(s);<BR>            offset </SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000"> length;<BR>        }<BR>        String[] array </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> String[list.size()];<BR>        </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> i </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">; i </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> array.length; i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR>            array[i] </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> (String) list.get(i);<BR>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> array;<BR>    }<BR><BR>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args) {<BR>        String s </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">鎴憍xx鐖盢BA</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR>        </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> i </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">; i </SPAN><SPAN style="COLOR: #000000"><=</SPAN><SPAN style="COLOR: #000000"> s.getBytes().length; i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR>            System.out.println(StringUtils.join(split(s, i), </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">));<BR>    }<BR></SPAN></DIV> <P><BR>杈撳嚭緇撴灉鏄?</P> <P>鎴?xx,x,鐖?NB,A<BR>鎴憍,xx,鐖盢,BA<BR>鎴憍x,x鐖盢,BA<BR>鎴憍xx,鐖盢BA<BR>鎴憍xx,鐖盢BA<BR>鎴憍xx鐖?NBA<BR>鎴憍xx鐖盢,BA<BR>鎴憍xx鐖盢B,A<BR>鎴憍xx鐖盢BA</P><img src ="http://www.aygfsteel.com/quaff/aggbug/33478.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/quaff/" target="_blank">quaff</a> 2006-03-03 15:45 <a href="http://www.aygfsteel.com/quaff/articles/33478.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">临汾市</a>| <a href="http://" target="_blank">绥化市</a>| <a href="http://" target="_blank">永兴县</a>| <a href="http://" target="_blank">丰顺县</a>| <a href="http://" target="_blank">鄂托克前旗</a>| <a href="http://" target="_blank">财经</a>| <a href="http://" target="_blank">河西区</a>| <a href="http://" target="_blank">呼玛县</a>| <a href="http://" target="_blank">清苑县</a>| <a href="http://" target="_blank">汉阴县</a>| <a href="http://" target="_blank">年辖:市辖区</a>| <a href="http://" target="_blank">莱西市</a>| <a href="http://" target="_blank">泗洪县</a>| <a href="http://" target="_blank">鄂托克旗</a>| <a href="http://" target="_blank">关岭</a>| <a href="http://" target="_blank">涪陵区</a>| <a href="http://" target="_blank">宁河县</a>| <a href="http://" target="_blank">兴文县</a>| <a href="http://" target="_blank">兴山县</a>| <a href="http://" target="_blank">嘉义市</a>| <a href="http://" target="_blank">贵溪市</a>| <a href="http://" target="_blank">南通市</a>| <a href="http://" target="_blank">日土县</a>| <a href="http://" target="_blank">安达市</a>| <a href="http://" target="_blank">浮梁县</a>| <a href="http://" target="_blank">大荔县</a>| <a href="http://" target="_blank">尼勒克县</a>| <a href="http://" target="_blank">鹿邑县</a>| <a href="http://" target="_blank">忻城县</a>| <a href="http://" target="_blank">邢台县</a>| <a href="http://" target="_blank">林甸县</a>| <a href="http://" target="_blank">赣州市</a>| <a href="http://" target="_blank">洛宁县</a>| <a href="http://" target="_blank">文昌市</a>| <a href="http://" target="_blank">合肥市</a>| <a href="http://" target="_blank">乌拉特前旗</a>| <a href="http://" target="_blank">东乡族自治县</a>| <a href="http://" target="_blank">房山区</a>| <a href="http://" target="_blank">山东</a>| <a href="http://" target="_blank">峨山</a>| <a href="http://" 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>