锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产日韩欧美,男人的天堂免费在线视频,欧美久久综合http://www.aygfsteel.com/tkaven/articles/377388.html銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author>Fri, 04 May 2012 08:02:00 GMThttp://www.aygfsteel.com/tkaven/articles/377388.htmlhttp://www.aygfsteel.com/tkaven/comments/377388.htmlhttp://www.aygfsteel.com/tkaven/articles/377388.html#Feedback0http://www.aygfsteel.com/tkaven/comments/commentRss/377388.htmlhttp://www.aygfsteel.com/tkaven/services/trackbacks/377388.html 1 
 2 public class TestPriority {
 3     public static void main(String[] args) {
 4         Thread t1 = new Thread(new T1());
 5         Thread t2 = new Thread(new T2());
 6         t1.setPriority(Thread.NORM_PRIORITY +3); //浼樺厛綰ц瀹?/span>
 7         t1.start(); t2.start();
 8     }
 9 
10 }
11 
12 class T1 implements Runnable {
13     public void run() {
14         for(int i=0;i<1000;i++){System.out.println("T1:"+i);}
15     }
16 }
17 
18 class T2 implements Runnable {
19     public void run() {
20         for(int i=0;i<1000;i++){System.out.println("------------T2:"+i);}
21     }
22 }
23 

]]>
銆愪竴鏃ヤ竴緇冦戝綰跨▼ Sleep 鏂規(guī)硶鐨勫疄鐜?/title><link>http://www.aygfsteel.com/tkaven/articles/377384.html</link><dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator><author>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author><pubDate>Fri, 04 May 2012 07:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/tkaven/articles/377384.html</guid><wfw:comment>http://www.aygfsteel.com/tkaven/comments/377384.html</wfw:comment><comments>http://www.aygfsteel.com/tkaven/articles/377384.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tkaven/comments/commentRss/377384.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tkaven/services/trackbacks/377384.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span> <span style="color: #0000FF; ">import</span> java.util.*;<br /><span style="color: #008080; "> 2</span> <br /><span style="color: #008080; "> 3</span> <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">class</span> TestInterrupt {<br /><span style="color: #008080; "> 4</span>     <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">static</span> <span style="color: #0000FF; ">void</span> main(String[] args){<br /><span style="color: #008080; "> 5</span>         MyThread thread =<span style="color: #0000FF; ">new</span> MyThread();<br /><span style="color: #008080; "> 6</span>         thread.run();<br /><span style="color: #008080; "> 7</span>         <span style="color: #0000FF; ">try</span>{Thread.sleep(10000);}<br /><span style="color: #008080; "> 8</span>         <span style="color: #0000FF; ">catch</span> (InterruptedException e){}<br /><span style="color: #008080; "> 9</span>         thread.interrupt();<br /><span style="color: #008080; ">10</span>     }<br /><span style="color: #008080; ">11</span> }<br /><span style="color: #008080; ">12</span> <br /><span style="color: #008080; ">13</span> <span style="color: #0000FF; ">class</span> MyThread <span style="color: #0000FF; ">extends</span> Thread{<br /><span style="color: #008080; ">14</span>     <span style="color: #0000FF; ">boolean</span> flag =<span style="color: #0000FF; ">true</span>;<br /><span style="color: #008080; ">15</span>     <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> run() {<br /><span style="color: #008080; ">16</span>         <span style="color: #0000FF; ">while</span>(flag){<br /><span style="color: #008080; ">17</span>             System.out.println("==="+<span style="color: #0000FF; ">new</span> Date()+"===");<br /><span style="color: #008080; ">18</span>             <span style="color: #0000FF; ">try</span> {<br /><span style="color: #008080; ">19</span>                 sleep(1000);<br /><span style="color: #008080; ">20</span>             }<br /><span style="color: #008080; ">21</span>             <span style="color: #0000FF; ">catch</span> (InterruptedException e) {<br /><span style="color: #008080; ">22</span>                 <span style="color: #0000FF; ">return</span>;<br /><span style="color: #008080; ">23</span>             }<br /><span style="color: #008080; ">24</span>         }<br /><span style="color: #008080; ">25</span>     }<br /><span style="color: #008080; ">26</span>     <br /><span style="color: #008080; ">27</span> }</div><img src ="http://www.aygfsteel.com/tkaven/aggbug/377384.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tkaven/" target="_blank">銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/a> 2012-05-04 15:20 <a href="http://www.aygfsteel.com/tkaven/articles/377384.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愭瘡鏃ヤ竴棰樸戝皢閿洏杈撳叆鐨勮嫳鏂囧瓧絎﹁漿鎹負(fù)澶у啓錛圛O鍖?InputStreameRedader,BufferedReader鐨勮繍鐢級http://www.aygfsteel.com/tkaven/articles/377133.html銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author>Tue, 01 May 2012 17:57:00 GMThttp://www.aygfsteel.com/tkaven/articles/377133.htmlhttp://www.aygfsteel.com/tkaven/comments/377133.htmlhttp://www.aygfsteel.com/tkaven/articles/377133.html#Feedback0http://www.aygfsteel.com/tkaven/comments/commentRss/377133.htmlhttp://www.aygfsteel.com/tkaven/services/trackbacks/377133.html
 1 import java.io.*;
 2 
 3 public class TestTransForm {
 4     
 5     public static void main(String[] args){
 6         InputStreamReader isr=new InputStreamReader(System.in);
 7         BufferedReader br=new BufferedReader(isr);
 8         String s=null;
 9         
10         try{
11             s=br.readLine();
12             while(s!=null){
13                 if(s.equalsIgnoreCase("exit"))break;
14                 System.out.println(s.toUpperCase());
15                 s=br.readLine();
16             }
17             br.close();
18             
19         } catch (IOException e){e.printStackTrace();}
20     }
21 }
22 


]]>
銆愭瘡鏃ヤ竴棰樸戞枃浠跺鍒訛紙IO鍖?FileOutputStream鐨勮繍鐢級http://www.aygfsteel.com/tkaven/articles/377117.html銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author>Tue, 01 May 2012 11:39:00 GMThttp://www.aygfsteel.com/tkaven/articles/377117.htmlhttp://www.aygfsteel.com/tkaven/comments/377117.htmlhttp://www.aygfsteel.com/tkaven/articles/377117.html#Feedback0http://www.aygfsteel.com/tkaven/comments/commentRss/377117.htmlhttp://www.aygfsteel.com/tkaven/services/trackbacks/377117.html
 1 import java.io.*;
 2 
 3 public class TestFileOutputStream {
 4     public static void main(String[] args){
 5         int b=0;
 6         FileInputStream in=null;
 7         FileOutputStream out=null;
 8         
 9         try{
10             in=new FileInputStream("c:/windows/notepad.exe");
11             out=new FileOutputStream("c:/notepad.exe");
12             while((b=in.read())!=-1){out.write(b);}
13             in.close();
14             out.close();
15             
16         } catch (FileNotFoundException e2){
17             System.out.println("鎵句笉鍒版寚瀹氭枃浠?);System.exit(-1);
18         } catch (IOException e1){
19             System.out.println("鏂囦歡澶嶅埗閿欒");System.exit(-1);
20         }
21         
22         System.out.println("鏂囦歡宸插鍒?);
23     }
24 }
25 


]]>
銆愭瘡鏃ヤ竴棰樸戝弬鏁扮粺璁★紙瀹瑰櫒涓庢硾鍨嬬殑榪愮敤錛?/title><link>http://www.aygfsteel.com/tkaven/articles/377088.html</link><dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator><author>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author><pubDate>Mon, 30 Apr 2012 15:15:00 GMT</pubDate><guid>http://www.aygfsteel.com/tkaven/articles/377088.html</guid><wfw:comment>http://www.aygfsteel.com/tkaven/comments/377088.html</wfw:comment><comments>http://www.aygfsteel.com/tkaven/articles/377088.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tkaven/comments/commentRss/377088.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tkaven/services/trackbacks/377088.html</trackback:ping><description><![CDATA[<div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span> <span style="color: #0000FF; ">import</span> java.util.*;<br /><span style="color: #008080; "> 2</span> <br /><span style="color: #008080; "> 3</span> <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">class</span> TestArgsWords {<br /><span style="color: #008080; "> 4</span>     <br /><span style="color: #008080; "> 5</span>     <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">static</span> <span style="color: #0000FF; ">void</span> main(String args[]) {<br /><span style="color: #008080; "> 6</span>         Map<String, Integer> m = <span style="color: #0000FF; ">new</span> HashMap<String, Integer>();<br /><span style="color: #008080; "> 7</span>         <br /><span style="color: #008080; "> 8</span>         <span style="color: #0000FF; ">for</span> (<span style="color: #0000FF; ">int</span> i = 0; i < args.length; i++) {<br /><span style="color: #008080; "> 9</span>             <span style="color: #0000FF; ">int</span> freq = (Integer) m.get(args[i]) == <span style="color: #0000FF; ">null</span> ? 0 : (Integer) m.get(args[i]);<br /><span style="color: #008080; ">10</span>             m.put(args[i], freq==0 ? 1 : freq + 1);<br /><span style="color: #008080; ">11</span>         }<br /><span style="color: #008080; ">12</span>         <br /><span style="color: #008080; ">13</span>         System.out.println(m.size() + " distinct words detected:\n"+m);<br /><span style="color: #008080; ">14</span>     }<br /><span style="color: #008080; ">15</span> }<br /><span style="color: #008080; ">16</span> </div></div><img src ="http://www.aygfsteel.com/tkaven/aggbug/377088.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tkaven/" target="_blank">銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/a> 2012-04-30 23:15 <a href="http://www.aygfsteel.com/tkaven/articles/377088.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愭瘡鏃ヤ竴棰樸戦亶鍘?鏌愪竴鏂囦歡澶逛笅鐨勬墍鏈?鏂囦歡錛堝す錛?/title><link>http://www.aygfsteel.com/tkaven/articles/377063.html</link><dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator><author>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author><pubDate>Mon, 30 Apr 2012 05:00:00 GMT</pubDate><guid>http://www.aygfsteel.com/tkaven/articles/377063.html</guid><wfw:comment>http://www.aygfsteel.com/tkaven/comments/377063.html</wfw:comment><comments>http://www.aygfsteel.com/tkaven/articles/377063.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tkaven/comments/commentRss/377063.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tkaven/services/trackbacks/377063.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img id="Codehighlighter1_0_50_Open_Image" onclick="this.style.display='none'; Codehighlighter1_0_50_Open_Text.style.display='none'; Codehighlighter1_0_50_Closed_Image.style.display='inline'; Codehighlighter1_0_50_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_0_50_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_0_50_Closed_Text.style.display='none'; Codehighlighter1_0_50_Open_Image.style.display='inline'; Codehighlighter1_0_50_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_0_50_Closed_Text">/**/</span><span id="Codehighlighter1_0_50_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /></span><span style="color: #008080"> 2</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 緙栧啓涓涓▼搴忥紝<br /></span><span style="color: #008080"> 3</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 鍦ㄥ懡浠よ涓互鏍?wèi)鐘毒l撴瀯<br /></span><span style="color: #008080"> 4</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 灞曠幇鐗瑰畾鐨勬枃浠跺す鏈哄櫒瀛愭枃浠訛紙澶癸級<br /></span><span style="color: #008080"> 5</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" /> </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.io.</span><span style="color: #000000">*</span><span style="color: #000000">;<br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img id="Codehighlighter1_94_498_Open_Image" onclick="this.style.display='none'; Codehighlighter1_94_498_Open_Text.style.display='none'; Codehighlighter1_94_498_Closed_Image.style.display='inline'; Codehighlighter1_94_498_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_94_498_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_94_498_Closed_Text.style.display='none'; Codehighlighter1_94_498_Open_Image.style.display='inline'; Codehighlighter1_94_498_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> FileList </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_94_498_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_94_498_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">11</span><span style="color: #000000"><img id="Codehighlighter1_136_186_Open_Image" onclick="this.style.display='none'; Codehighlighter1_136_186_Open_Text.style.display='none'; Codehighlighter1_136_186_Closed_Image.style.display='inline'; Codehighlighter1_136_186_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_136_186_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_136_186_Closed_Text.style.display='none'; Codehighlighter1_136_186_Open_Image.style.display='inline'; Codehighlighter1_136_186_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">    </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)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_136_186_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_136_186_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        tree(</span><span style="color: #0000ff">new</span><span style="color: #000000"> File(</span><span style="color: #000000">"</span><span style="color: #000000">d:/Recycler/Legend_Wind</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: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /></span><span style="color: #008080">15</span><span style="color: #000000"><img id="Codehighlighter1_233_496_Open_Image" onclick="this.style.display='none'; Codehighlighter1_233_496_Open_Text.style.display='none'; Codehighlighter1_233_496_Closed_Image.style.display='inline'; Codehighlighter1_233_496_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_233_496_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_233_496_Closed_Text.style.display='none'; Codehighlighter1_233_496_Open_Image.style.display='inline'; Codehighlighter1_233_496_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: #0000ff">private</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"> tree(File f,</span><span style="color: #0000ff">int</span><span style="color: #000000"> level)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_233_496_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_233_496_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        String preStr</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">;<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> n </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;n</span><span style="color: #000000"><</span><span style="color: #000000">level;n</span><span style="color: #000000">++</span><span style="color: #000000">) preStr </span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">\t\t</span><span style="color: #000000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        File[] sub</span><span style="color: #000000">=</span><span style="color: #000000">f.listFiles();<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img id="Codehighlighter1_366_469_Open_Image" onclick="this.style.display='none'; Codehighlighter1_366_469_Open_Text.style.display='none'; Codehighlighter1_366_469_Closed_Image.style.display='inline'; Codehighlighter1_366_469_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_366_469_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_366_469_Closed_Text.style.display='none'; Codehighlighter1_366_469_Open_Image.style.display='inline'; Codehighlighter1_366_469_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        </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">0</span><span style="color: #000000">;i</span><span style="color: #000000"><</span><span style="color: #000000">sub.length;i</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_366_469_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_366_469_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img id="Codehighlighter1_395_417_Open_Image" onclick="this.style.display='none'; Codehighlighter1_395_417_Open_Text.style.display='none'; Codehighlighter1_395_417_Closed_Image.style.display='inline'; Codehighlighter1_395_417_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_395_417_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_395_417_Closed_Text.style.display='none'; Codehighlighter1_395_417_Open_Image.style.display='inline'; Codehighlighter1_395_417_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="color: #0000ff">if</span><span style="color: #000000">(sub[i].isDirectory())</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_395_417_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_395_417_Open_Text"><span style="color: #000000">{tree(sub[i],level</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">);}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />            System.out.println(preStr</span><span style="color: #000000">+</span><span style="color: #000000">sub[i].getName());<br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println();<br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">26</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /></span></div> <p> </p><img src ="http://www.aygfsteel.com/tkaven/aggbug/377063.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tkaven/" target="_blank">銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/a> 2012-04-30 13:00 <a href="http://www.aygfsteel.com/tkaven/articles/377063.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愭瘡鏃ヤ竴棰樸戣В鏋?鏁板瓧瀛楃涓?鍌ㄥ瓨鍒頒簩緇存暟緇?/title><link>http://www.aygfsteel.com/tkaven/articles/377062.html</link><dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator><author>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author><pubDate>Mon, 30 Apr 2012 04:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/tkaven/articles/377062.html</guid><wfw:comment>http://www.aygfsteel.com/tkaven/comments/377062.html</wfw:comment><comments>http://www.aygfsteel.com/tkaven/articles/377062.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tkaven/comments/commentRss/377062.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tkaven/services/trackbacks/377062.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img id="Codehighlighter1_0_63_Open_Image" onclick="this.style.display='none'; Codehighlighter1_0_63_Open_Text.style.display='none'; Codehighlighter1_0_63_Closed_Image.style.display='inline'; Codehighlighter1_0_63_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_0_63_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_0_63_Closed_Text.style.display='none'; Codehighlighter1_0_63_Open_Image.style.display='inline'; Codehighlighter1_0_63_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_0_63_Closed_Text">/**/</span><span id="Codehighlighter1_0_63_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /></span><span style="color: #008080"> 2</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 灝嗕竴浜涙棩鏈熸暎涔卞瓨鍏ユ暟緇勶紝<br /></span><span style="color: #008080"> 3</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 鐒跺悗鐢ㄥ啋娉℃硶鍗囧簭鎺掑垪<br /></span><span style="color: #008080"> 4</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 騫舵煡鎵句竴涓瓨鍦ㄧ殑鏃ユ湡錛岀粰鍑鴻鏃ユ湡鎵鍦ㄦ暟緇勪腑鐨勪綅緗?br /></span><span style="color: #008080"> 5</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" /> </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img id="Codehighlighter1_91_1364_Open_Image" onclick="this.style.display='none'; Codehighlighter1_91_1364_Open_Text.style.display='none'; Codehighlighter1_91_1364_Closed_Image.style.display='inline'; Codehighlighter1_91_1364_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_91_1364_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_91_1364_Closed_Text.style.display='none'; Codehighlighter1_91_1364_Open_Image.style.display='inline'; Codehighlighter1_91_1364_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> TestDateSort </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_91_1364_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_91_1364_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img id="Codehighlighter1_133_514_Open_Image" onclick="this.style.display='none'; Codehighlighter1_133_514_Open_Text.style.display='none'; Codehighlighter1_133_514_Closed_Image.style.display='inline'; Codehighlighter1_133_514_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_133_514_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_133_514_Closed_Text.style.display='none'; Codehighlighter1_133_514_Open_Image.style.display='inline'; Codehighlighter1_133_514_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">    </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) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_133_514_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_133_514_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        Date[] days </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date[</span><span style="color: #000000">5</span><span style="color: #000000">];<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        days[</span><span style="color: #000000">0</span><span style="color: #000000">] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2006</span><span style="color: #000000">, </span><span style="color: #000000">5</span><span style="color: #000000">, </span><span style="color: #000000">4</span><span style="color: #000000">);<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        days[</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: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2006</span><span style="color: #000000">, </span><span style="color: #000000">7</span><span style="color: #000000">, </span><span style="color: #000000">4</span><span style="color: #000000">);<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        days[</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: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2008</span><span style="color: #000000">, </span><span style="color: #000000">5</span><span style="color: #000000">, </span><span style="color: #000000">4</span><span style="color: #000000">);<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        days[</span><span style="color: #000000">3</span><span style="color: #000000">] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2004</span><span style="color: #000000">, </span><span style="color: #000000">5</span><span style="color: #000000">, </span><span style="color: #000000">9</span><span style="color: #000000">);<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        days[</span><span style="color: #000000">4</span><span style="color: #000000">] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2004</span><span style="color: #000000">, </span><span style="color: #000000">5</span><span style="color: #000000">, </span><span style="color: #000000">4</span><span style="color: #000000">);<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        Date d </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date(</span><span style="color: #000000">2006</span><span style="color: #000000">, </span><span style="color: #000000">7</span><span style="color: #000000">, </span><span style="color: #000000">4</span><span style="color: #000000">);<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        bubbleSort(days);<br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /></span><span style="color: #008080">19</span><span style="color: #000000"><img id="Codehighlighter1_429_465_Open_Image" onclick="this.style.display='none'; Codehighlighter1_429_465_Open_Text.style.display='none'; Codehighlighter1_429_465_Closed_Image.style.display='inline'; Codehighlighter1_429_465_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_429_465_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_429_465_Closed_Text.style.display='none'; Codehighlighter1_429_465_Open_Image.style.display='inline'; Codehighlighter1_429_465_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        </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">0</span><span style="color: #000000">; i</span><span style="color: #000000"><</span><span style="color: #000000">days.length; i</span><span style="color: #000000">++</span><span style="color: #000000">) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_429_465_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_429_465_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />            System.out.println(days[i]);<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(binarySearch(days, d));<br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /></span><span style="color: #008080">26</span><span style="color: #000000"><img id="Codehighlighter1_561_882_Open_Image" onclick="this.style.display='none'; Codehighlighter1_561_882_Open_Text.style.display='none'; Codehighlighter1_561_882_Closed_Image.style.display='inline'; Codehighlighter1_561_882_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_561_882_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_561_882_Closed_Text.style.display='none'; Codehighlighter1_561_882_Open_Image.style.display='inline'; Codehighlighter1_561_882_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">     </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> Date[] bubbleSort(Date[] a)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_561_882_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_561_882_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> len </span><span style="color: #000000">=</span><span style="color: #000000"> a.length;<br /></span><span style="color: #008080">28</span><span style="color: #000000"><img id="Codehighlighter1_626_858_Open_Image" onclick="this.style.display='none'; Codehighlighter1_626_858_Open_Text.style.display='none'; Codehighlighter1_626_858_Closed_Image.style.display='inline'; Codehighlighter1_626_858_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_626_858_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_626_858_Closed_Text.style.display='none'; Codehighlighter1_626_858_Open_Image.style.display='inline'; Codehighlighter1_626_858_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        </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"> len</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;i</span><span style="color: #000000">>=</span><span style="color: #000000">1</span><span style="color: #000000">;i</span><span style="color: #000000">--</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_626_858_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_626_858_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">29</span><span style="color: #000000"><img id="Codehighlighter1_665_848_Open_Image" onclick="this.style.display='none'; Codehighlighter1_665_848_Open_Text.style.display='none'; Codehighlighter1_665_848_Closed_Image.style.display='inline'; Codehighlighter1_665_848_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_665_848_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_665_848_Closed_Text.style.display='none'; Codehighlighter1_665_848_Open_Image.style.display='inline'; Codehighlighter1_665_848_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">int</span><span style="color: #000000"> j </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;j</span><span style="color: #000000"><=</span><span style="color: #000000">i</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;j</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_665_848_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_665_848_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">30</span><span style="color: #000000"><img id="Codehighlighter1_711_834_Open_Image" onclick="this.style.display='none'; Codehighlighter1_711_834_Open_Text.style.display='none'; Codehighlighter1_711_834_Closed_Image.style.display='inline'; Codehighlighter1_711_834_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_711_834_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_711_834_Closed_Text.style.display='none'; Codehighlighter1_711_834_Open_Image.style.display='inline'; Codehighlighter1_711_834_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">                </span><span style="color: #0000ff">if</span><span style="color: #000000">(a[j].compare(a[j</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="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_711_834_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_711_834_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">31</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />                    Date temp </span><span style="color: #000000">=</span><span style="color: #000000"> a[j]; <br /></span><span style="color: #008080">32</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />                    a[j]</span><span style="color: #000000">=</span><span style="color: #000000">a[j</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">];<br /></span><span style="color: #008080">33</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />                    a[j</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">temp;<br /></span><span style="color: #008080">34</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">35</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />            }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">36</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">37</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> a;<br /></span><span style="color: #008080">38</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">39</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /></span><span style="color: #008080">40</span><span style="color: #000000"><img id="Codehighlighter1_945_1362_Open_Image" onclick="this.style.display='none'; Codehighlighter1_945_1362_Open_Text.style.display='none'; Codehighlighter1_945_1362_Closed_Image.style.display='inline'; Codehighlighter1_945_1362_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_945_1362_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_945_1362_Closed_Text.style.display='none'; Codehighlighter1_945_1362_Open_Image.style.display='inline'; Codehighlighter1_945_1362_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">    </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">int</span><span style="color: #000000"> binarySearch(Date[] days, Date d) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_945_1362_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_945_1362_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">41</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (days.length</span><span style="color: #000000">==</span><span style="color: #000000">0</span><span style="color: #000000">) </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /></span><span style="color: #008080">42</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /></span><span style="color: #008080">43</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> startPos </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: #008080">44</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> endPos </span><span style="color: #000000">=</span><span style="color: #000000"> days.length</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /></span><span style="color: #008080">45</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> m </span><span style="color: #000000">=</span><span style="color: #000000"> (startPos </span><span style="color: #000000">+</span><span style="color: #000000"> endPos) </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: #008080">46</span><span style="color: #000000"><img id="Codehighlighter1_1113_1340_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1113_1340_Open_Text.style.display='none'; Codehighlighter1_1113_1340_Closed_Image.style.display='inline'; Codehighlighter1_1113_1340_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1113_1340_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1113_1340_Closed_Text.style.display='none'; Codehighlighter1_1113_1340_Open_Image.style.display='inline'; Codehighlighter1_1113_1340_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="color: #0000ff">while</span><span style="color: #000000">(startPos </span><span style="color: #000000"><=</span><span style="color: #000000"> endPos)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1113_1340_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1113_1340_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">47</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />          </span><span style="color: #0000ff">if</span><span style="color: #000000">(d.compare(days[m]) </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: #0000ff">return</span><span style="color: #000000"> m;<br /></span><span style="color: #008080">48</span><span style="color: #000000"><img id="Codehighlighter1_1194_1229_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1194_1229_Open_Text.style.display='none'; Codehighlighter1_1194_1229_Closed_Image.style.display='inline'; Codehighlighter1_1194_1229_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1194_1229_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1194_1229_Closed_Text.style.display='none'; Codehighlighter1_1194_1229_Open_Image.style.display='inline'; Codehighlighter1_1194_1229_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">          </span><span style="color: #0000ff">if</span><span style="color: #000000">(d.compare(days[m]) </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1194_1229_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1194_1229_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">49</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />              startPos </span><span style="color: #000000">=</span><span style="color: #000000"> m </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;<br /></span><span style="color: #008080">50</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />          }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">51</span><span style="color: #000000"><img id="Codehighlighter1_1265_1297_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1265_1297_Open_Text.style.display='none'; Codehighlighter1_1265_1297_Closed_Image.style.display='inline'; Codehighlighter1_1265_1297_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1265_1297_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1265_1297_Closed_Text.style.display='none'; Codehighlighter1_1265_1297_Open_Image.style.display='inline'; Codehighlighter1_1265_1297_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">          </span><span style="color: #0000ff">if</span><span style="color: #000000">(d.compare(days[m]) </span><span style="color: #000000"><</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1265_1297_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1265_1297_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">52</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />              endPos </span><span style="color: #000000">=</span><span style="color: #000000"> m </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /></span><span style="color: #008080">53</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />          }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">54</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />          m </span><span style="color: #000000">=</span><span style="color: #000000"> (startPos </span><span style="color: #000000">+</span><span style="color: #000000"> endPos) </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: #008080">55</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">56</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /></span><span style="color: #008080">57</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">58</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">59</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">60</span><span style="color: #000000"><img id="Codehighlighter1_1378_1827_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1378_1827_Open_Text.style.display='none'; Codehighlighter1_1378_1827_Closed_Image.style.display='inline'; Codehighlighter1_1378_1827_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_1378_1827_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1378_1827_Closed_Text.style.display='none'; Codehighlighter1_1378_1827_Open_Image.style.display='inline'; Codehighlighter1_1378_1827_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: #0000ff">class</span><span style="color: #000000"> Date </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1378_1827_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1378_1827_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">61</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />  </span><span style="color: #0000ff">int</span><span style="color: #000000"> year, month, day;<br /></span><span style="color: #008080">62</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />  <br /></span><span style="color: #008080">63</span><span style="color: #000000"><img id="Codehighlighter1_1435_1473_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1435_1473_Open_Text.style.display='none'; Codehighlighter1_1435_1473_Closed_Image.style.display='inline'; Codehighlighter1_1435_1473_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1435_1473_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1435_1473_Closed_Text.style.display='none'; Codehighlighter1_1435_1473_Open_Image.style.display='inline'; Codehighlighter1_1435_1473_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">  Date(</span><span style="color: #0000ff">int</span><span style="color: #000000"> y, </span><span style="color: #0000ff">int</span><span style="color: #000000"> m, </span><span style="color: #0000ff">int</span><span style="color: #000000"> d) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1435_1473_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1435_1473_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">64</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    year </span><span style="color: #000000">=</span><span style="color: #000000"> y; month </span><span style="color: #000000">=</span><span style="color: #000000"> m; day </span><span style="color: #000000">=</span><span style="color: #000000"> d;<br /></span><span style="color: #008080">65</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />  }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">66</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />  <br /></span><span style="color: #008080">67</span><span style="color: #000000"><img id="Codehighlighter1_1510_1724_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1510_1724_Open_Text.style.display='none'; Codehighlighter1_1510_1724_Closed_Image.style.display='inline'; Codehighlighter1_1510_1724_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1510_1724_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1510_1724_Closed_Text.style.display='none'; Codehighlighter1_1510_1724_Open_Image.style.display='inline'; Codehighlighter1_1510_1724_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">  </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> compare(Date date) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1510_1724_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1510_1724_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">68</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> year </span><span style="color: #000000">></span><span style="color: #000000"> date.year </span><span style="color: #000000">?</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">69</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />           : year </span><span style="color: #000000"><</span><span style="color: #000000"> date.year </span><span style="color: #000000">?</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">70</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />           : month </span><span style="color: #000000">></span><span style="color: #000000"> date.month </span><span style="color: #000000">?</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">71</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />           : month </span><span style="color: #000000"><</span><span style="color: #000000"> date.month </span><span style="color: #000000">?</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">72</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />           : day </span><span style="color: #000000">></span><span style="color: #000000"> date.day </span><span style="color: #000000">?</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">73</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />           : day </span><span style="color: #000000"><</span><span style="color: #000000"> date.day </span><span style="color: #000000">?</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">0</span><span style="color: #000000">;<br /></span><span style="color: #008080">74</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />  }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">75</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />  <br /></span><span style="color: #008080">76</span><span style="color: #000000"><img id="Codehighlighter1_1756_1825_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1756_1825_Open_Text.style.display='none'; Codehighlighter1_1756_1825_Closed_Image.style.display='inline'; Codehighlighter1_1756_1825_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1756_1825_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1756_1825_Closed_Text.style.display='none'; Codehighlighter1_1756_1825_Open_Image.style.display='inline'; Codehighlighter1_1756_1825_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">  </span><span style="color: #0000ff">public</span><span style="color: #000000"> String toString() </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1756_1825_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1756_1825_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">77</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Year:Month:Day -- </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> year </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">-</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> month </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">-</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> day;<br /></span><span style="color: #008080">78</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />  }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">79</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div><img src ="http://www.aygfsteel.com/tkaven/aggbug/377062.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tkaven/" target="_blank">銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/a> 2012-04-30 12:59 <a href="http://www.aygfsteel.com/tkaven/articles/377062.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愭瘡鏃ヤ竴棰樸戞棩鏈熷瓨鍏ユ暟緇勶紝鎺掑簭涓旀煡鎵懼茍緇欏嚭浣嶇疆http://www.aygfsteel.com/tkaven/articles/377061.html銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author>Mon, 30 Apr 2012 04:57:00 GMThttp://www.aygfsteel.com/tkaven/articles/377061.htmlhttp://www.aygfsteel.com/tkaven/comments/377061.htmlhttp://www.aygfsteel.com/tkaven/articles/377061.html#Feedback0http://www.aygfsteel.com/tkaven/comments/commentRss/377061.htmlhttp://www.aygfsteel.com/tkaven/services/trackbacks/377061.html 1/*
 2 * 灝嗕竴浜涙棩鏈熸暎涔卞瓨鍏ユ暟緇勶紝
 3 * 鐒跺悗鐢ㄥ啋娉℃硶鍗囧簭鎺掑垪
 4 * 騫舵煡鎵句竴涓瓨鍦ㄧ殑鏃ユ湡錛岀粰鍑鴻鏃ユ湡鎵鍦ㄦ暟緇勪腑鐨勪綅緗?br /> 5 */

 6public class TestDateSort {
 7    public static void main(String[] args) {
 8        Date[] days = new Date[5];
 9        days[0= new Date(200654);
10        days[1= new Date(200674);
11        days[2= new Date(200854);
12        days[3= new Date(200459);
13        days[4= new Date(200454);
14        
15        Date d = new Date(200674);
16
17        bubbleSort(days);
18        
19        for(int i=0; i<days.length; i++{
20            System.out.println(days[i]);
21        }

22
23        System.out.println(binarySearch(days, d));
24    }

25    
26     public static Date[] bubbleSort(Date[] a){
27        int len = a.length;
28        for(int i = len-1;i>=1;i--){
29            for(int j = 0;j<=i-1;j++){
30                if(a[j].compare(a[j+1]) > 0){
31                    Date temp = a[j]; 
32                    a[j]=a[j+1];
33                    a[j+1]=temp;
34                }

35            }

36        }

37        return a;
38    }

39    
40    public static int binarySearch(Date[] days, Date d) {
41        if (days.length==0return -1;
42    
43        int startPos = 0
44        int endPos = days.length-1;
45        int m = (startPos + endPos) / 2;
46        while(startPos <= endPos){
47          if(d.compare(days[m]) == 0return m;
48          if(d.compare(days[m]) > 0{
49              startPos = m + 1;
50          }

51          if(d.compare(days[m]) < 0{
52              endPos = m -1;
53          }

54          m = (startPos + endPos) / 2;
55        }

56        return -1;
57    }

58}

59
60class Date {
61  int year, month, day;
62  
63  Date(int y, int m, int d) {
64    year = y; month = m; day = d;
65  }

66  
67  public int compare(Date date) {
68    return year > date.year ? 1
69           : year < date.year ? -1
70           : month > date.month ? 1
71           : month < date.month ? -1
72           : day > date.day ? 1
73           : day < date.day ? -1 : 0;
74  }

75  
76  public String toString() {
77      return "Year:Month:Day -- " + year + "-" + month + "-" + day;
78  }

79}


]]>
銆愭瘡鏃ヤ竴棰樸戝皬瀛╁洿鍦堬紝鏁頒笁閫涓http://www.aygfsteel.com/tkaven/articles/377060.html銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author>Mon, 30 Apr 2012 04:56:00 GMThttp://www.aygfsteel.com/tkaven/articles/377060.htmlhttp://www.aygfsteel.com/tkaven/comments/377060.htmlhttp://www.aygfsteel.com/tkaven/articles/377060.html#Feedback0http://www.aygfsteel.com/tkaven/comments/commentRss/377060.htmlhttp://www.aygfsteel.com/tkaven/services/trackbacks/377060.html 

 1//鍋囪500涓皬瀛╂墜鎷夌潃鎵嬪洿鐫涓鍦堬紝鏁頒笁灝遍鍑哄湀瀛愶紝鏈鍚庣暀鍦ㄥ湀鍐呯殑灝忓鏄鍑犲彿錛?/span>
 2
 3public class Count3Quit {
 4      public static void main(String[] args) {
 5              KidCircle kc = new KidCircle(500);
 6              
 7              Kid k = kc.first;
 8              int countNum = 0;
 9              while(kc.count > 1{
10                   countNum ++;
11                   if(countNum == 3){
12                         countNum = 0;
13                           kc.del(k);  
14                    }

15                    k = k.right;
16               }

17               System.out.println("鍓╀笅鐨勫皬瀛╃紪鍙鋒槸錛?/span>"+(kc.first.id+1));
18       }
 
19}

20
21class Kid {
22      int id;
23      Kid left;
24      Kid right;
25}

26
27class KidCircle{
28       int count = 0;
29       Kid first,last;
30 
31
32       KidCircle (int n){
33        for (int i = 0;i<n;i++){add();}
34    }

35
36        void add(){
37            Kid k =new Kid();
38            k.id=count;
39            if (count<=0){
40                first=k;
41                last=k;
42                k.left=k.right=k;
43            }
 else {
44                k.left =last;
45                k.right =first;
46                last.right=first.left=last=k;
47            }

48            count++;
49        }

50
51        void del(Kid k){
52            if (count<=0){return;}
53            else if (count==1){first=last=null;}
54            else {
55                k.left.right=k.right;
56                k.right.left=k.left;
57                if (k==first){ first=k.right;}
58                else if (k==last){last=k.left;}
59            }

60            count--;
61        }

62}

 



]]>
銆愭瘡鏃ヤ竴棰樸慗AVA錛氱牆鐮侀棶棰?/title><link>http://www.aygfsteel.com/tkaven/articles/377059.html</link><dc:creator>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/dc:creator><author>銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/author><pubDate>Mon, 30 Apr 2012 04:51:00 GMT</pubDate><guid>http://www.aygfsteel.com/tkaven/articles/377059.html</guid><wfw:comment>http://www.aygfsteel.com/tkaven/comments/377059.html</wfw:comment><comments>http://www.aygfsteel.com/tkaven/articles/377059.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tkaven/comments/commentRss/377059.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tkaven/services/trackbacks/377059.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">package</span><span style="color: #000000"> poise;<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img id="Codehighlighter1_16_365_Open_Image" onclick="this.style.display='none'; Codehighlighter1_16_365_Open_Text.style.display='none'; Codehighlighter1_16_365_Closed_Image.style.display='inline'; Codehighlighter1_16_365_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_16_365_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_16_365_Closed_Text.style.display='none'; Codehighlighter1_16_365_Open_Image.style.display='inline'; Codehighlighter1_16_365_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_16_365_Closed_Text">/** */</span><span id="Codehighlighter1_16_365_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"><br /></span><span style="color: #008080"> 4</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /> * 鐢ㄥぉ騫崇О閲嶆椂錛屾垜浠笇鏈涚敤灝藉彲鑳藉皯鐨勭牆鐮佺粍鍚堢О鍑哄敖鍙兘澶氱殑閲嶉噺銆?br /></span><span style="color: #008080"> 5</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      濡傛灉鍙湁5涓牆鐮侊紝閲嶉噺鍒嗗埆鏄?錛?錛?錛?7錛?1銆傚垯瀹冧滑鍙互緇勫悎縐板嚭1鍒?21涔嬮棿浠繪剰鏁存暟閲嶉噺錛堢牆鐮佸厑璁告斁鍦ㄥ乏鍙充袱涓洏涓級銆?br /></span><span style="color: #008080"> 6</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      鏈鐩姹傜紪紼嬪疄鐜幫細(xì)瀵圭敤鎴風(fēng)粰瀹氱殑閲嶉噺錛岀粰鍑虹牆鐮佺粍鍚堟柟妗堛?br /></span><span style="color: #008080"> 7</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      渚嬪錛?br /></span><span style="color: #008080"> 8</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      鐢ㄦ埛杈撳叆錛?br /></span><span style="color: #008080"> 9</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      5<br /></span><span style="color: #008080">10</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      紼嬪簭杈撳嚭錛?br /></span><span style="color: #008080">11</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      9-3-1<br /></span><span style="color: #008080">12</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      鐢ㄦ埛杈撳叆錛?br /></span><span style="color: #008080">13</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      19<br /></span><span style="color: #008080">14</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      紼嬪簭杈撳嚭錛?br /></span><span style="color: #008080">15</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      27-9+1<br /></span><span style="color: #008080">16</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      杈撳叆錛?br /></span><span style="color: #008080">17</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      41<br /></span><span style="color: #008080">18</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      杈撳嚭錛?br /></span><span style="color: #008080">19</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      81-27-9-3-1<br /></span><span style="color: #008080">20</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      瑕佹眰紼嬪簭杈撳嚭鐨勭粍鍚堟繪槸澶ф暟鍦ㄥ墠灝忔暟鍦ㄥ悗銆?br /></span><span style="color: #008080">21</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />      鍙互鍋囪鐢ㄦ埛鐨勮緭鍏ョ殑鏁板瓧絎﹀悎鑼冨洿1~121銆?br /></span><span style="color: #008080">22</span><span style="color: #008000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />*</span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">24</span><span style="color: #000000"><img id="Codehighlighter1_388_1044_Open_Image" onclick="this.style.display='none'; Codehighlighter1_388_1044_Open_Text.style.display='none'; Codehighlighter1_388_1044_Closed_Image.style.display='inline'; Codehighlighter1_388_1044_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_388_1044_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_388_1044_Closed_Text.style.display='none'; Codehighlighter1_388_1044_Open_Image.style.display='inline'; Codehighlighter1_388_1044_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Weight </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_388_1044_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_388_1044_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">26</span><span style="color: #000000"><img id="Codehighlighter1_433_1042_Open_Image" onclick="this.style.display='none'; Codehighlighter1_433_1042_Open_Text.style.display='none'; Codehighlighter1_433_1042_Closed_Image.style.display='inline'; Codehighlighter1_433_1042_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_433_1042_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_433_1042_Closed_Text.style.display='none'; Codehighlighter1_433_1042_Open_Image.style.display='inline'; Codehighlighter1_433_1042_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">    </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) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_433_1042_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_433_1042_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> input </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">106</span><span style="color: #000000">;<br /></span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000">[] a , b , c , d , e;<br /></span><span style="color: #008080">29</span><span style="color: #000000"><img id="Codehighlighter1_530_537_Open_Image" onclick="this.style.display='none'; Codehighlighter1_530_537_Open_Text.style.display='none'; Codehighlighter1_530_537_Closed_Image.style.display='inline'; Codehighlighter1_530_537_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_530_537_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_530_537_Closed_Text.style.display='none'; Codehighlighter1_530_537_Open_Image.style.display='inline'; Codehighlighter1_530_537_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        a </span><span style="color: #000000">=</span><span style="color: #000000"> b </span><span style="color: #000000">=</span><span style="color: #000000"> c </span><span style="color: #000000">=</span><span style="color: #000000"> d </span><span style="color: #000000">=</span><span style="color: #000000"> e </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000">[]</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_530_537_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_530_537_Open_Text"><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">0</span><span style="color: #000000">,</span><span style="color: #000000">1</span><span style="color: #000000">}</span></span><span style="color: #000000">;<br /></span><span style="color: #008080">30</span><span style="color: #000000"><img id="Codehighlighter1_564_1036_Open_Image" onclick="this.style.display='none'; Codehighlighter1_564_1036_Open_Text.style.display='none'; Codehighlighter1_564_1036_Closed_Image.style.display='inline'; Codehighlighter1_564_1036_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_564_1036_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_564_1036_Closed_Text.style.display='none'; Codehighlighter1_564_1036_Open_Image.style.display='inline'; Codehighlighter1_564_1036_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> ai : a)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_564_1036_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_564_1036_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">31</span><span style="color: #000000"><img id="Codehighlighter1_594_1026_Open_Image" onclick="this.style.display='none'; Codehighlighter1_594_1026_Open_Text.style.display='none'; Codehighlighter1_594_1026_Closed_Image.style.display='inline'; Codehighlighter1_594_1026_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_594_1026_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_594_1026_Closed_Text.style.display='none'; Codehighlighter1_594_1026_Open_Image.style.display='inline'; Codehighlighter1_594_1026_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> bi : b)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_594_1026_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_594_1026_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">32</span><span style="color: #000000"><img id="Codehighlighter1_628_1012_Open_Image" onclick="this.style.display='none'; Codehighlighter1_628_1012_Open_Text.style.display='none'; Codehighlighter1_628_1012_Closed_Image.style.display='inline'; Codehighlighter1_628_1012_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_628_1012_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_628_1012_Closed_Text.style.display='none'; Codehighlighter1_628_1012_Open_Image.style.display='inline'; Codehighlighter1_628_1012_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">                </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> ci : c)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_628_1012_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_628_1012_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">33</span><span style="color: #000000"><img id="Codehighlighter1_666_994_Open_Image" onclick="this.style.display='none'; Codehighlighter1_666_994_Open_Text.style.display='none'; Codehighlighter1_666_994_Closed_Image.style.display='inline'; Codehighlighter1_666_994_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_666_994_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_666_994_Closed_Text.style.display='none'; Codehighlighter1_666_994_Open_Image.style.display='inline'; Codehighlighter1_666_994_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">                    </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> di : d)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_666_994_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_666_994_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">34</span><span style="color: #000000"><img id="Codehighlighter1_708_972_Open_Image" onclick="this.style.display='none'; Codehighlighter1_708_972_Open_Text.style.display='none'; Codehighlighter1_708_972_Closed_Image.style.display='inline'; Codehighlighter1_708_972_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_708_972_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_708_972_Closed_Text.style.display='none'; Codehighlighter1_708_972_Open_Image.style.display='inline'; Codehighlighter1_708_972_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">                        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> ei : e)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_708_972_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_708_972_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">35</span><span style="color: #000000"><img id="Codehighlighter1_786_946_Open_Image" onclick="this.style.display='none'; Codehighlighter1_786_946_Open_Text.style.display='none'; Codehighlighter1_786_946_Closed_Image.style.display='inline'; Codehighlighter1_786_946_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_786_946_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_786_946_Closed_Text.style.display='none'; Codehighlighter1_786_946_Open_Image.style.display='inline'; Codehighlighter1_786_946_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif">                            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (input </span><span style="color: #000000">==</span><span style="color: #000000"> ei</span><span style="color: #000000">*</span><span style="color: #000000">81</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> di</span><span style="color: #000000">*</span><span style="color: #000000">27</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> ci</span><span style="color: #000000">*</span><span style="color: #000000">9</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> bi</span><span style="color: #000000">*</span><span style="color: #000000">3</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> ai</span><span style="color: #000000">*</span><span style="color: #000000">1</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_786_946_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_786_946_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">36</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" alt="" />                                System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000"> ei</span><span style="color: #000000">*</span><span style="color: #000000">81</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">)+(</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> di</span><span style="color: #000000">*</span><span style="color: #000000">27</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">)+(</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> ci</span><span style="color: #000000">*</span><span style="color: #000000">9</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">)+(</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> bi</span><span style="color: #000000">*</span><span style="color: #000000">3</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">)+(</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> ai</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">)</span><span style="color: #000000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">37</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                            }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">38</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">39</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">40</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">41</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />            }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">42</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">43</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">44</span><span style="color: #000000"><img align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div><img src ="http://www.aygfsteel.com/tkaven/aggbug/377059.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tkaven/" target="_blank">銆愰犲弽鐨勫瀛愪滑銆慇銆愭祦嫻ぇ鍙旂殑鍏洯銆?/a> 2012-04-30 12:51 <a href="http://www.aygfsteel.com/tkaven/articles/377059.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>