锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美国产欧美亚洲国产日韩mv天天看完整 ,午夜精品久久久,久久久精品动漫http://www.shnenglu.com/luyulaile/category/15751.htmlI canzh-cnTue, 27 Nov 2012 12:52:28 GMTTue, 27 Nov 2012 12:52:28 GMT60Java 瀛楃涓叉瘮杈?/title><link>http://www.shnenglu.com/luyulaile/archive/2012/11/22/195517.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 21 Nov 2012 16:44:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2012/11/22/195517.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/195517.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2012/11/22/195517.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/195517.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/195517.html</trackback:ping><description><![CDATA[鍘熸枃錛?a >http://www.cnblogs.com/tonyqus/archive/2004/12/07/73710.html</a> <span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; "></span><br /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; "><br /><br />鐔熸?zhèn)塁++鐨勪漢瀵逛簬涓や釜瀛楃涓叉瘮杈冪殑浠g爜涓瀹氬緢浜嗚В錛?nbsp;</span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">(string1==string2) </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">浣嗗湪java涓紝榪欎釜浠g爜鍗充嬌鍦ㄤ袱涓瓧絎︿覆瀹屽叏鐩稿悓鐨勬儏鍐典笅涔熶細(xì)榪斿洖false </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">Java涓繀欏諱嬌鐢╯tring1.equals(string2)鏉ヨ繘琛屽垽鏂?nbsp;</span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><strong style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">琛ュ厖</strong> <br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">濡傛灉錛?nbsp;</span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">string s1=new String("Hello"); </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">string s2=new String("Hello"); </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">鍒?s1==s2)=false </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">濡傛灉錛?nbsp;</span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">string s1="Hello"; </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">string s2="Hello"; </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">鍒?s1==s2)=true; </span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">鍥犱負(fù)浠栦滑鎸囧悜鐨勫悓涓涓璞°?nbsp;</span><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><br style="margin: 0px; padding: 0px; color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; " /><span style="color: #393939; font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; background-color: #faf7ef; ">濡傛灉鎶婂叾浠栧彉閲忕殑鍊艱祴緇檚1鍜宻2錛屽嵆浣垮唴瀹圭浉鍚岋紝鐢變簬涓嶆槸鎸囧悜鍚屼竴涓璞★紝涔熶細(xì)榪斿洖false銆傛墍浠ュ緩璁嬌鐢╡quals()錛屽洜涓篹quals姣旇緝鐨勬墠鏄湡姝g殑鍐呭 </span><img src ="http://www.shnenglu.com/luyulaile/aggbug/195517.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2012-11-22 00:44 <a href="http://www.shnenglu.com/luyulaile/archive/2012/11/22/195517.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java 涓殑 Hashmap serialization 闈炲父鑰楄垂絀洪棿 Java綰跨▼http://www.shnenglu.com/luyulaile/archive/2012/04/06/170227.htmlluisluisThu, 05 Apr 2012 20:32:00 GMThttp://www.shnenglu.com/luyulaile/archive/2012/04/06/170227.htmlhttp://www.shnenglu.com/luyulaile/comments/170227.htmlhttp://www.shnenglu.com/luyulaile/archive/2012/04/06/170227.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/170227.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/170227.html

璋冭瘯Java紼嬪簭鐨勬椂鍊欙紝涓瀹氳娉ㄦ剰Java綰跨▼錛屼綍鏃舵寕璧鳳紝鏄惁浼?xì)缁堟锛岃兘鍚﹂渶瑕佹柊寤猴紝start 榪樻槸resume.


luis 2012-04-06 04:32 鍙戣〃璇勮
]]>
Eclipse Fatjar鍖呯殑璋冭瘯http://www.shnenglu.com/luyulaile/archive/2012/04/05/170117.htmlluisluisThu, 05 Apr 2012 01:14:00 GMThttp://www.shnenglu.com/luyulaile/archive/2012/04/05/170117.htmlhttp://www.shnenglu.com/luyulaile/comments/170117.htmlhttp://www.shnenglu.com/luyulaile/archive/2012/04/05/170117.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/170117.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/170117.html浣跨敤鍛戒護(hù)琛?錛?br />鍒板叾璺緞涓嬭繍琛?java -jar xxx.jar -pause 榪愯榪欎釜鏂囦歡錛岃繖鏃惰繘琛屾搷浣滃氨鍙互鐪嬪埌鎵鎶ラ敊璇?/span>

luis 2012-04-05 09:14 鍙戣〃璇勮
]]>
浜嬩歡鍝嶅簲紼嬪簭鍐欐垚寮傛綰跨▼http://www.shnenglu.com/luyulaile/archive/2012/04/04/169989.htmlluisluisTue, 03 Apr 2012 20:36:00 GMThttp://www.shnenglu.com/luyulaile/archive/2012/04/04/169989.htmlhttp://www.shnenglu.com/luyulaile/comments/169989.htmlhttp://www.shnenglu.com/luyulaile/archive/2012/04/04/169989.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/169989.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/169989.html鎴戜滑闇瑕佸皢浜嬩歡鍝嶅簲紼嬪簭鍐欐垚Thread錛屽疄鐜板紓姝ョ洃鍚?br />鍦ㄥ祵鍏ョ被涓皟鐢╰his,闇瑕佺被鍚?this.
浠g爜1錛氬搷搴旈儴鍒?br />
package firstversion;

public class ThreadForUpdate extends Thread{
    ControlPanel cp;
    Simulator r;
    
    
public ThreadForUpdate(ControlPanel cp,Simulator r)
    {
        
this.cp=cp;
        
this.r=r;
    }
    
    
public void run()
    {
        
while(cp.flag==true)
     {
        r.DisplaySolutionRecursive();
        cp.textFieldStability.setText(r.node.stabilityState.stability.toString());
        cp.textFieldDirection.setText(r.node.controlledState.direction.toString());
        cp.textFieldDifficulty.setText(r.node.controlledState.difficulty.toString());
        cp.textFieldActionExecuting.setText(
"("+r.node.stabilityState.actor+","+r.node.stabilityState.actionBeExecuting+")");
        cp.textFieldStability.setText(r.node.stabilityState.stability.toString());
        cp.textFieldX.setText(
""+r.node.controlledState.x);
        cp.textFieldY.setText(
""+r.node.controlledState.y);
        cp.textFieldTraffic.setText(r.node.traffic.toString());
        
if(r.node.isTerminal==true)
            cp.textFieldNextAction.setText(
"");
        
else
            cp.textFieldNextAction.setText(r.node.bestAction.toString());
        cp.textFieldEngagement.setText(r.node.engagement.toString());
        
        
try {
            Thread.sleep(
200);
        } 
catch (InterruptedException e) {
            e.printStackTrace();
        }
      }
    }

}
浠g爜2錛氫簨浠跺搷搴?br />
btnBegin = new JButton("Begin");
        btnBegin.setEnabled(
false);
        
final ThreadForUpdate threadUpdate=new ThreadForUpdate(ControlPanel.this,r);;
        btnBegin.addActionListener(
new ActionListener() {

            
public void actionPerformed(ActionEvent arg0) {
                threadUpdate.start();
                }            
        });







luis 2012-04-04 04:36 鍙戣〃璇勮
]]>
[杞琞Java鍙嶅皠緇忓吀瀹炰緥 Java Reflection Cookbookhttp://www.shnenglu.com/luyulaile/archive/2012/02/16/165718.htmlluisluisThu, 16 Feb 2012 01:19:00 GMThttp://www.shnenglu.com/luyulaile/archive/2012/02/16/165718.htmlhttp://www.shnenglu.com/luyulaile/comments/165718.htmlhttp://www.shnenglu.com/luyulaile/archive/2012/02/16/165718.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/165718.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/165718.html闃呰鍏ㄦ枃

luis 2012-02-16 09:19 鍙戣〃璇勮
]]>
java 鍐呴儴綾?鍙嶅皠鐨勫疄鐜?/title><link>http://www.shnenglu.com/luyulaile/archive/2012/02/16/165714.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Thu, 16 Feb 2012 01:17:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2012/02/16/165714.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/165714.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2012/02/16/165714.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/165714.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/165714.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: #0000FF; ">package</span><span style="color: #000000; "> homework1;<br /><br /></span><span style="color: #0000FF; ">import</span><span style="color: #000000; "> java.lang.reflect.Constructor;<br /></span><span style="color: #0000FF; ">import</span><span style="color: #000000; "> java.lang.reflect.InvocationTargetException;<br /></span><span style="color: #0000FF; ">import</span><span style="color: #000000; "> java.util.Vector;<br /><br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> BayesianNetwork {<br />    </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">final</span><span style="color: #000000; "> String Less</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; "><45</span><span style="color: #000000; ">"</span><span style="color: #000000; ">;<br />    </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; ">  </span><span style="color: #0000FF; ">final</span><span style="color: #000000; "> String Middle</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">45-55</span><span style="color: #000000; ">"</span><span style="color: #000000; ">;<br />    </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; ">  </span><span style="color: #0000FF; ">final</span><span style="color: #000000; "> String More</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">>=55</span><span style="color: #000000; ">"</span><span style="color: #000000; ">;<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> A{Less,Middle,More};<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeA </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    A value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> G{Female,Male};<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeG </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    G value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> CP{Typical,Atypical,NonAnginal,None};<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeCP </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    CP value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> BP{Low,High};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeBP </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    BP value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> CH{Low,High};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeCH </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    CH value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> ECG{Normal,Abnormal};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeECG </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    ECG value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> HR{Low,High};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeHR </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    HR value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> EIA{No,Yes};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeEIA </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    EIA value;<br />}<br /></span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> HD{No,Yes};<br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> NodeHD </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> Node{<br />    HD value;<br />}<br /><br /></span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> Node{<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; ">    Vector</span><span style="color: #000000; "><</span><span style="color: #000000; ">Node</span><span style="color: #000000; ">></span><span style="color: #000000; "> parent;<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; ">    String name;<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; ">    </span><span style="color: #0000FF; ">int</span><span style="color: #000000; "> cpt[];<br />    <br /> </span><span style="color: #0000FF; ">public</span><span style="color: #000000; ">  Node(){<br />        </span><span style="color: #0000FF; ">this</span><span style="color: #000000; ">.parent</span><span style="color: #000000; ">=</span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> Vector</span><span style="color: #000000; "><</span><span style="color: #000000; ">Node</span><span style="color: #000000; ">></span><span style="color: #000000; ">();<br />        cpt</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="color: #000000; ">64</span><span style="color: #000000; ">];<br />    }<br />}<br /><br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> main(String[] args) </span><span style="color: #0000FF; ">throws</span><span style="color: #000000; "> IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException, Exception, NoSuchMethodException<br />{<br />    Vector </span><span style="color: #000000; "><</span><span style="color: #000000; ">Node</span><span style="color: #000000; ">></span><span style="color: #000000; "> nodeList</span><span style="color: #000000; ">=</span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> Vector</span><span style="color: #000000; "><</span><span style="color: #000000; ">Node</span><span style="color: #000000; ">></span><span style="color: #000000; ">();<br />    String[] nameList</span><span style="color: #000000; ">=</span><span style="color: #000000; ">{</span><span style="color: #000000; ">"</span><span style="color: #000000; ">A</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">G</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">CP</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">BP</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">CH</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">ECG</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">HR</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">EIA</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,</span><span style="color: #000000; ">"</span><span style="color: #000000; ">HD</span><span style="color: #000000; ">"</span><span style="color: #000000; ">};<br />    System.out.println(NodeA.</span><span style="color: #0000FF; ">class</span><span style="color: #000000; ">);<br />    </span><span style="color: #0000FF; ">for</span><span style="color: #000000; ">(String a:nameList)<br />    {<br />        Class newoneClass </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Class.forName(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">homework1.BayesianNetwork$Node</span><span style="color: #000000; ">"</span><span style="color: #000000; ">+</span><span style="color: #000000; ">a);//</span><span style="color: red; ">classname涔熶笉涓鏍?/span><span style="color: #000000; "><br />        Constructor cons </span><span style="color: #000000; ">=</span><span style="color: #000000; "> newoneClass.getDeclaredConstructors()[</span><span style="color: #000000; ">0</span><span style="color: #000000; ">];<br />        cons.setAccessible(</span><span style="color: #0000FF; ">true</span><span style="color: #000000; ">);<br />        Object node</span><span style="color: #000000; ">=</span><span style="color: #000000; "> cons.newInstance(</span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> BayesianNetwork()); //</span><span style="color: red; ">闇瑕佺殑鏄閮ㄧ被鐨勬瀯閫犳柟娉?  }<br /><br />}</span><span style="color: #000000; "><br />        nodeList.add((Node) node);<br />    }<br /></span></div><img src ="http://www.shnenglu.com/luyulaile/aggbug/165714.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2012-02-16 09:17 <a href="http://www.shnenglu.com/luyulaile/archive/2012/02/16/165714.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java enum 綾誨瀷鐨勯亶鍘?/title><link>http://www.shnenglu.com/luyulaile/archive/2011/12/27/162900.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Tue, 27 Dec 2011 04:40:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2011/12/27/162900.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/162900.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2011/12/27/162900.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/162900.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/162900.html</trackback:ping><description><![CDATA[Java enum 鏋氫婦鐨勯亶鍘?br /><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: #0000FF; ">private</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">enum</span><span style="color: #000000; "> Action{left,right,forward,continued };<br /><br /> </span><span style="color: #0000FF; ">for</span><span style="color: #000000; ">(Action action:Action.values())<br />                             {<br />   </span><span style="color: #008000; ">//</span><span style="color: #008000; ">Use variable action</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">}</span></div><img src ="http://www.shnenglu.com/luyulaile/aggbug/162900.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2011-12-27 12:40 <a href="http://www.shnenglu.com/luyulaile/archive/2011/12/27/162900.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java Hashtable HashMap ArrayList Vector 絳夌瓑http://www.shnenglu.com/luyulaile/archive/2011/12/27/162899.htmlluisluisTue, 27 Dec 2011 04:00:00 GMThttp://www.shnenglu.com/luyulaile/archive/2011/12/27/162899.htmlhttp://www.shnenglu.com/luyulaile/comments/162899.htmlhttp://www.shnenglu.com/luyulaile/archive/2011/12/27/162899.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/162899.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/162899.html闃呰鍏ㄦ枃

luis 2011-12-27 12:00 鍙戣〃璇勮
]]>
Eclipse蹇嵎閿ぇ鍏╗zt]http://www.shnenglu.com/luyulaile/archive/2011/11/17/160334.htmlluisluisThu, 17 Nov 2011 04:47:00 GMThttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160334.htmlhttp://www.shnenglu.com/luyulaile/comments/160334.htmlhttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160334.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/160334.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/160334.html
http://blog.csdn.net/zt2oo8/article/details/959280
鏈夋椂鎴戜滑澶嶅埗鍒?em style="color: #d14836; font-style: normal; ">Eclipse涓殑浠g爜姣旇緝娣蜂貢錛岃繖鏃舵寜Ctrl + Shift + F灝?/span>鍙互鑷姩璋冩暣濂戒唬鐮佺殑鏍煎紡

Ctrl+1 蹇熶慨澶?鏈緇忓吀鐨勫揩鎹烽敭,灝變笉鐢ㄥ璇翠簡)
Ctrl+D: 鍒犻櫎褰撳墠琛?nbsp;
Ctrl+Alt+↓ 澶嶅埗褰撳墠琛屽埌涓嬩竴琛?澶嶅埗澧炲姞)
Ctrl+Alt+↑ 澶嶅埗褰撳墠琛屽埌涓婁竴琛?澶嶅埗澧炲姞)
Alt+↓ 褰撳墠琛屽拰涓嬮潰涓琛屼氦浜掍綅緗?鐗瑰埆瀹炵敤,鍙互鐪佸幓鍏堝壀鍒?鍐嶇矘璐翠簡)
Alt+↑ 褰撳墠琛屽拰涓婇潰涓琛屼氦浜掍綅緗?鍚屼笂)
Alt+← 鍓嶄竴涓紪杈戠殑欏甸潰
Alt+→ 涓嬩竴涓紪杈戠殑欏甸潰(褰撶劧鏄拡瀵逛笂闈㈤偅鏉℃潵璇翠簡)
Alt+Enter 鏄劇ず褰撳墠閫夋嫨璧勬簮(宸ョ▼,or 鏂囦歡 or鏂囦歡)鐨勫睘鎬?br />Shift+Enter 鍦ㄥ綋鍓嶈鐨勪笅涓琛屾彃鍏ョ┖琛?榪欐椂榧犳爣鍙互鍦ㄥ綋鍓嶈鐨勪換涓浣嶇疆,涓嶄竴瀹氭槸鏈鍚?
Shift+Ctrl+Enter 鍦ㄥ綋鍓嶈鎻掑叆絀鴻(鍘熺悊鍚屼笂鏉?
Ctrl+Q 瀹氫綅鍒版渶鍚庣紪杈戠殑鍦版柟
Ctrl+L 瀹氫綅鍦ㄦ煇琛?nbsp;(瀵逛簬紼嬪簭瓚呰繃100鐨勪漢灝辨湁紱忛煶浜?
Ctrl+M 鏈澶у寲褰撳墠鐨凟dit鎴朧iew (鍐嶆寜鍒欏弽涔?
Ctrl+/ 娉ㄩ噴褰撳墠琛?鍐嶆寜鍒欏彇娑堟敞閲?br />Ctrl+O 蹇熸樉紺?nbsp;OutLine
Ctrl+T 蹇熸樉紺哄綋鍓嶇被鐨勭戶鎵跨粨鏋?br />Ctrl+W 鍏抽棴褰撳墠Editer
Ctrl+K 鍙傜収閫変腑鐨刉ord蹇熷畾浣嶅埌涓嬩竴涓?br />Ctrl+E 蹇熸樉紺哄綋鍓岴diter鐨勪笅鎷夊垪琛?濡傛灉褰撳墠欏甸潰娌℃湁鏄劇ず鐨勭敤榛戜綋琛ㄧず)
Ctrl+/(灝忛敭鐩? 鎶樺彔褰撳墠綾諱腑鐨勬墍鏈変唬鐮?br />Ctrl+×(灝忛敭鐩? 灞曞紑褰撳墠綾諱腑鐨勬墍鏈変唬鐮?br />Ctrl+Space 浠g爜鍔╂墜瀹屾垚涓浜涗唬鐮佺殑鎻掑叆(浣嗕竴鑸拰杈撳叆娉曟湁鍐茬獊,鍙互淇敼杈撳叆娉曠殑鐑敭,涔熷彲浠ユ殏鐢ˋlt+/鏉ヤ唬鏇?
Ctrl+Shift+E 鏄劇ず綆$悊褰撳墠鎵撳紑鐨勬墍鏈夌殑View鐨勭鐞嗗櫒(鍙互閫夋嫨鍏抽棴,嬋媧葷瓑鎿嶄綔)
Ctrl+J 姝e悜澧為噺鏌ユ壘(鎸変笅Ctrl+J鍚?浣犳墍杈撳叆鐨勬瘡涓瓧姣嶇紪杈戝櫒閮芥彁渚涘揩閫熷尮閰嶅畾浣嶅埌鏌愪釜鍗曡瘝,濡傛灉娌℃湁,鍒欏湪stutes line涓樉紺烘病鏈夋壘鍒頒簡,鏌ヤ竴涓崟璇嶆椂,鐗瑰埆瀹炵敤,榪欎釜鍔熻兘Idea涓ゅ勾鍓嶅氨鏈変簡)
Ctrl+Shift+J 鍙嶅悜澧為噺鏌ユ壘(鍜屼笂鏉$浉鍚?鍙笉榪囨槸浠庡悗寰鍓嶆煡)
Ctrl+Shift+F4 鍏抽棴鎵鏈夋墦寮鐨凟diter
Ctrl+Shift+X 鎶婂綋鍓嶉変腑鐨勬枃鏈叏閮ㄥ彉鍛沖皬鍐?br />Ctrl+Shift+Y 鎶婂綋鍓嶉変腑鐨勬枃鏈叏閮ㄥ彉涓哄皬鍐?br />Ctrl+Shift+F 鏍煎紡鍖栧綋鍓嶄唬鐮?br />Ctrl+Shift+P 瀹氫綅鍒板浜庣殑鍖歸厤絎?璀{}) (浠庡墠闈㈠畾浣嶅悗闈㈡椂,鍏夋爣瑕佸湪鍖歸厤絎﹂噷闈?鍚庨潰鍒板墠闈?鍒欏弽涔?

涓嬮潰鐨勫揩鎹烽敭鏄噸鏋勯噷闈㈠父鐢ㄧ殑,鏈漢灝辮嚜宸卞枩嬈笖甯哥敤鐨勬暣鐞嗕竴涓?娉?涓鑸噸鏋勭殑蹇嵎閿兘鏄疉lt+Shift寮澶寸殑浜?
Alt+Shift+R 閲嶅懡鍚?nbsp;(鏄垜鑷繁鏈鐖辯敤鐨勪竴涓簡,灝ゅ叾鏄彉閲忓拰綾葷殑Rename,姣旀墜宸ユ柟娉曡兘鑺傜渷寰堝鍔沖姩鍔?
Alt+Shift+M 鎶藉彇鏂規(guī)硶 (榪欐槸閲嶆瀯閲岄潰鏈甯哥敤鐨勬柟娉曚箣涓浜?灝ゅ叾鏄涓澶у爢娉ュ洟浠g爜鏈夌敤)
Alt+Shift+C 淇敼鍑芥暟緇撴瀯(姣旇緝瀹炵敤,鏈塏涓嚱鏁拌皟鐢ㄤ簡榪欎釜鏂規(guī)硶,淇敼涓嬈℃悶瀹?
Alt+Shift+L 鎶藉彇鏈湴鍙橀噺( 鍙互鐩存帴鎶婁竴浜涢瓟娉曟暟瀛楀拰瀛楃涓叉娊鍙栨垚涓涓彉閲?灝ゅ叾鏄澶勮皟鐢ㄧ殑鏃跺?
Alt+Shift+F 鎶奀lass涓殑local鍙橀噺鍙樹負(fù)field鍙橀噺 (姣旇緝瀹炵敤鐨勫姛鑳?
Alt+Shift+I 鍚堝茍鍙橀噺(鍙兘榪欐牱璇存湁鐐逛笉濡nline)
Alt+Shift+V 縐誨姩鍑芥暟鍜屽彉閲?涓嶆庝箞甯哥敤)
Alt+Shift+Z 閲嶆瀯鐨勫悗鎮(zhèn)旇嵂(Undo)

緙栬緫
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鏌ユ壘騫舵浛鎹?nbsp;Ctrl+F 
鏂囨湰緙栬緫鍣?nbsp;鏌ユ壘涓婁竴涓?nbsp;Ctrl+Shift+K 
鏂囨湰緙栬緫鍣?nbsp;鏌ユ壘涓嬩竴涓?nbsp;Ctrl+K 
鍏ㄥ眬 鎾ら攢 Ctrl+Z 
鍏ㄥ眬 澶嶅埗 Ctrl+C 
鍏ㄥ眬 鎭㈠涓婁竴涓夋嫨 Alt+Shift+↓ 
鍏ㄥ眬 鍓垏 Ctrl+X 
鍏ㄥ眬 蹇熶慨姝?nbsp;Ctrl1+1 
鍏ㄥ眬 鍐呭杈呭姪 Alt+/ 
鍏ㄥ眬 鍏ㄩ儴閫変腑 Ctrl+A 
鍏ㄥ眬 鍒犻櫎 Delete 
鍏ㄥ眬 涓婁笅鏂囦俊鎭?nbsp;Alt+錛?br />Alt+Shift+?
Ctrl+Shift+Space 
Java緙栬緫鍣?nbsp;鏄劇ず宸ュ叿鎻愮ず鎻忚堪 F2 
Java緙栬緫鍣?nbsp;閫夋嫨灝佽鍏冪礌 Alt+Shift+↑ 
Java緙栬緫鍣?nbsp;閫夋嫨涓婁竴涓厓绱?nbsp;Alt+Shift+← 
Java緙栬緫鍣?nbsp;閫夋嫨涓嬩竴涓厓绱?nbsp;Alt+Shift+→ 
鏂囨湰緙栬緫鍣?nbsp;澧為噺鏌ユ壘 Ctrl+J 
鏂囨湰緙栬緫鍣?nbsp;澧為噺閫嗗悜鏌ユ壘 Ctrl+Shift+J 
鍏ㄥ眬 綺樿創(chuàng) Ctrl+V 
鍏ㄥ眬 閲嶅仛 Ctrl+Y 

 
鏌ョ湅
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鏀懼ぇ Ctrl+= 
鍏ㄥ眬 緙╁皬 Ctrl+- 

 
紿楀彛
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 嬋媧葷紪杈戝櫒 F12 
鍏ㄥ眬 鍒囨崲緙栬緫鍣?nbsp;Ctrl+Shift+W 
鍏ㄥ眬 涓婁竴涓紪杈戝櫒 Ctrl+Shift+F6 
鍏ㄥ眬 涓婁竴涓鍥?nbsp;Ctrl+Shift+F7 
鍏ㄥ眬 涓婁竴涓忚鍥?nbsp;Ctrl+Shift+F8 
鍏ㄥ眬 涓嬩竴涓紪杈戝櫒 Ctrl+F6 
鍏ㄥ眬 涓嬩竴涓鍥?nbsp;Ctrl+F7 
鍏ㄥ眬 涓嬩竴涓忚鍥?nbsp;Ctrl+F8 
鏂囨湰緙栬緫鍣?nbsp;鏄劇ず鏍囧昂涓婁笅鏂囪彍鍗?nbsp;Ctrl+W 
鍏ㄥ眬 鏄劇ず瑙嗗浘鑿滃崟 Ctrl+F10 
鍏ㄥ眬 鏄劇ず緋葷粺鑿滃崟 Alt+- 

 
瀵艱埅
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
Java緙栬緫鍣?nbsp;鎵撳紑緇撴瀯 Ctrl+F3 
鍏ㄥ眬 鎵撳紑綾誨瀷 Ctrl+Shift+T 
鍏ㄥ眬 鎵撳紑綾誨瀷灞傛緇撴瀯 F4 
鍏ㄥ眬 鎵撳紑澹版槑 F3 
鍏ㄥ眬 鎵撳紑澶栭儴javadoc Shift+F2 
鍏ㄥ眬 鎵撳紑璧勬簮 Ctrl+Shift+R 
鍏ㄥ眬 鍚庨鍘嗗彶璁板綍 Alt+← 
鍏ㄥ眬 鍓嶈繘鍘嗗彶璁板綍 Alt+→ 
鍏ㄥ眬 涓婁竴涓?nbsp;Ctrl+, 
鍏ㄥ眬 涓嬩竴涓?nbsp;Ctrl+. 
Java緙栬緫鍣?nbsp;鏄劇ず澶х翰 Ctrl+O 
鍏ㄥ眬 鍦ㄥ眰嬈$粨鏋勪腑鎵撳紑綾誨瀷 Ctrl+Shift+H 
鍏ㄥ眬 杞嚦鍖歸厤鐨勬嫭鍙?nbsp;Ctrl+Shift+P 
鍏ㄥ眬 杞嚦涓婁竴涓紪杈戜綅緗?nbsp;Ctrl+Q 
Java緙栬緫鍣?nbsp;杞嚦涓婁竴涓垚鍛?nbsp;Ctrl+Shift+↑ 
Java緙栬緫鍣?nbsp;杞嚦涓嬩竴涓垚鍛?nbsp;Ctrl+Shift+↓ 
鏂囨湰緙栬緫鍣?nbsp;杞嚦琛?nbsp;Ctrl+L 

 
鎼滅儲
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鍑虹幇鍦ㄦ枃浠朵腑 Ctrl+Shift+U 
鍏ㄥ眬 鎵撳紑鎼滅儲瀵硅瘽妗?nbsp;Ctrl+H 
鍏ㄥ眬 宸ヤ綔鍖轟腑鐨勫0鏄?nbsp;Ctrl+G 
鍏ㄥ眬 宸ヤ綔鍖轟腑鐨勫紩鐢?nbsp;Ctrl+Shift+G 

 
鏂囨湰緙栬緫
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鏂囨湰緙栬緫鍣?nbsp;鏀瑰啓鍒囨崲 Insert 
鏂囨湰緙栬緫鍣?nbsp;涓婃粴琛?nbsp;Ctrl+↑ 
鏂囨湰緙栬緫鍣?nbsp;涓嬫粴琛?nbsp;Ctrl+↓ 

 
鏂囦歡
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 淇濆瓨 Ctrl+X 
Ctrl+S 
鍏ㄥ眬 鎵撳嵃 Ctrl+P 
鍏ㄥ眬 鍏抽棴 Ctrl+F4 
鍏ㄥ眬 鍏ㄩ儴淇濆瓨 Ctrl+Shift+S 
鍏ㄥ眬 鍏ㄩ儴鍏抽棴 Ctrl+Shift+F4 
鍏ㄥ眬 灞炴?nbsp;Alt+Enter 
鍏ㄥ眬 鏂板緩 Ctrl+N 

 
欏圭洰
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鍏ㄩ儴鏋勫緩 Ctrl+B 

 
婧愪唬鐮?br />浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
Java緙栬緫鍣?nbsp;鏍煎紡鍖?nbsp;Ctrl+Shift+F 
Java緙栬緫鍣?nbsp;鍙栨秷娉ㄩ噴 Ctrl+\ 
Java緙栬緫鍣?nbsp;娉ㄩ噴 Ctrl+/ 
Java緙栬緫鍣?nbsp;娣誨姞瀵煎叆 Ctrl+Shift+M 
Java緙栬緫鍣?nbsp;緇勭粐瀵煎叆 Ctrl+Shift+O 
Java緙栬緫鍣?nbsp;浣跨敤try/catch鍧楁潵鍖呭洿 鏈緗紝澶父鐢ㄤ簡錛屾墍浠ュ湪榪欓噷鍒楀嚭,寤鴻鑷繁璁劇疆銆?br />涔熷彲浠ヤ嬌鐢–trl+1鑷姩淇銆?nbsp;

 
榪愯
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鍗曟榪斿洖 F7 
鍏ㄥ眬 鍗曟璺寵繃 F6 
鍏ㄥ眬 鍗曟璺沖叆 F5 
鍏ㄥ眬 鍗曟璺沖叆閫夋嫨 Ctrl+F5 
鍏ㄥ眬 璋冭瘯涓婃鍚姩 F11 
鍏ㄥ眬 緇х畫 F8 
鍏ㄥ眬 浣跨敤榪囨護(hù)鍣ㄥ崟姝ユ墽琛?nbsp;Shift+F5 
鍏ㄥ眬 娣誨姞/鍘婚櫎鏂偣 Ctrl+Shift+B 
鍏ㄥ眬 鏄劇ず Ctrl+D 
鍏ㄥ眬 榪愯涓婃鍚姩 Ctrl+F11 
鍏ㄥ眬 榪愯鑷寵 Ctrl+R 
鍏ㄥ眬 鎵ц Ctrl+U 

 
閲嶆瀯
浣滅敤鍩?nbsp;鍔熻兘 蹇嵎閿?nbsp;
鍏ㄥ眬 鎾ら攢閲嶆瀯 Alt+Shift+Z 
鍏ㄥ眬 鎶藉彇鏂規(guī)硶 Alt+Shift+M 
鍏ㄥ眬 鎶藉彇灞閮ㄥ彉閲?nbsp;Alt+Shift+L 
鍏ㄥ眬 鍐呰仈 Alt+Shift+I 
鍏ㄥ眬 縐誨姩 Alt+Shift+V 
鍏ㄥ眬 閲嶅懡鍚?nbsp;Alt+Shift+R 
鍏ㄥ眬 閲嶅仛 Alt+Shift+Y




luis 2011-11-17 12:47 鍙戣〃璇勮
]]>
Java 涓璼canner 鍙互浠f浛C涓殑Scanf[zt]http://www.shnenglu.com/luyulaile/archive/2011/11/17/160321.htmlluisluisThu, 17 Nov 2011 02:57:00 GMThttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160321.htmlhttp://www.shnenglu.com/luyulaile/comments/160321.htmlhttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160321.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/160321.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/160321.html

婧愭枃錛? http://hi.baidu.com/yfwz100/blog/item/61f8c08bf0ff79cbfd1f1098.html
浠嶤璇█杞埌Java鐨勬椂鍊欙紝瀵笿ava鐨勮緭鍏ヨ緭鍑哄彲鑳戒細(xì)棰囦負(fù)娌撫錛屽洜涓篔ava娌℃湁鏄懼紡鎻愪緵scanf()/printf()鐨勫嚱鏁般?/span>

 

鍏跺疄錛孞ava緇欐垜浠彁渚涗簡鏍煎紡鍖栬緭鍏ヨ緭鍑虹殑闈㈠悜瀵硅薄鏂瑰紡銆?/p>

鏍煎紡鍖栬緭鍑猴細(xì)

鏈綆鍗曠殑灝辨槸鐩存帴浣跨敤閲嶈澆浜嗙殑“+”鏉ヨ繛鎺ュ悇縐嶆暟鎹紝榪欐牱姣攑rintf()涓洿瑙傜殑鏂規(guī)硶銆備絾涔熸湁緙虹偣錛屽お澶氱殑“+”鍙峰弽鑰屾墦涔辨墍鏈夌殑杈撳嚭錛岃屼笖杈撳嚭鏍煎紡涓嶅ソ鎺у埗銆?/p>

榪樻湁涓縐嶆柟寮忔槸浣跨敤InputStream鐨刦ormat()鏂規(guī)硶錛屾垨鑰咃紝濡傛灉浣跨敤鐨凧DK鐗堟湰鍦?.0浠ュ悗鐨勮瘽錛屽彲浠ヨ冭檻鐩稿悓鐨刾rintf()鏂規(guī)硶銆傝繖涓や釜鏂規(guī)硶鍜宲rintf()鏄浉鍚岀殑銆?/p>

鏍煎紡鍖栬緭鍏ワ細(xì)

榪欎釜闂姣旇緝鍥伴毦錛屾垜鐜板湪鎵懼埌鐨勬柟娉曢兘鏄粠JDK 5.0浠ュ悗寮曞叆鐨勩傝屼笖錛岃繕鏄病鏈夊儚scanf()閭f牱鐩存帴鏇夸唬鐨勬柟娉曘備絾鎴戜滑鍙互浣跨敤java.util.Scanner銆備絾鍙儨鐨勬槸

sc.nextInt();

鏄鍙栦竴琛屾暟鎹紝鐒跺悗杞崲涓烘暣鏁幫紝鑰屾垜浠湪浣跨敤scanf()鏃訛紝鍙兘浼?xì)杩欐狓P細(xì)

scanf("%d %d", &a, &b);

閲囩敤絀烘牸鍒嗗壊涓や釜鏁存暟鐨勮緭鍏ワ紝瀵規(guī)瘮涔嬩笅錛宩ava.util.Scanner綾繪彁渚涚殑鏂規(guī)硶灝辨樉寰楀眬闄愪簡銆?/p>

浣嗕簨瀹炰笂錛宩ava.util.Scanner綾繪彁渚涗簡useDelimiter()鏂規(guī)硶鏉ユ寚鏄庡垎鍓茬銆傛敞鎰忥紝“鍒嗗壊絎?#8221;鏄嬌鐢ㄦ鍒欒〃杈懼紡鐨勫艦寮忥紝鍙傜湅Pattern綾?/a>銆?/span>

濡備笂榪?/span>

scanf("%d %d", &a, &b);

鏇夸唬涓?/span>

sc.useDelimiter("\\s+");a=sc.nextInt();b=sc.nextInt();

鏉ユ浛浠o紙鍋囪sc鏄竴涓猨ava.util.Scanner綾誨璞★級銆傛敞鎰忥紝鍦↗ava姝e垯琛ㄨ揪寮忎腑錛?#8220;\s”浠h〃浜哰\t\n\x0B\f\r ]浠諱竴鑰咃紙琛ㄧず絀虹櫧瀛楃錛夈傝?#8220;+”琛ㄧず涓嶄粎浠呬竴涓紝鍗寵繛緇殑“絀虹櫧瀛楃”涔熷彲浠ャ?/span>

璇︾粏淇℃伅鍙傝java.util.Scanner綾?/a>銆?/span>


http://download.oracle.com/javase/7/docs/api/java/util/Scanner.html



luis 2011-11-17 10:57 鍙戣〃璇勮
]]>
Java IOhttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160312.htmlluisluisThu, 17 Nov 2011 01:30:00 GMThttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160312.htmlhttp://www.shnenglu.com/luyulaile/comments/160312.htmlhttp://www.shnenglu.com/luyulaile/archive/2011/11/17/160312.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/160312.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/160312.htmlBufferedReader   in=   new   BufferedReader(new   FileReader( "d:\\co\\work3.sql ")); 
                String   input=new   String(); 
                String   tablename=new   String( " "); 
                StringBuffer   transresult=new   StringBuffer(); 
                int   lbracketpos,rbracketpos; 
                boolean   newtable; 
                input=in.readLine();


-------

鐢╦ava.io.RandomAccessFile鐨剅eadLine()鏂規(guī)硶 

------

FileReader瀵硅薄鍙湁read鏂規(guī)硶
---------------
/* 
* 綆鍗曠殑璇?鍐欐枃鏈枃浠剁殑紺轟緥 
* 榪欓噷鍖呭惈浜嗕笁涓緥瀛愶紝鍗?nbsp;
* 1. 灝嗘枃浠惰鍏ュ埌鍐呭瓨錛堣繖閲屾槸StringBuffer錛夌殑渚嬪瓙 
* 2. 灝嗗唴瀹逛腑鐨勬枃鏈啓鍒版枃浠?nbsp;
* 3. 灝嗕竴涓枃浠剁殑鍐呭璇誨嚭鏉ュ啓鍏ュ彟涓涓枃浠朵腑 
* 鍚屾椂涔熷睍紺轟簡濡傛灉浠庤緭鍏ユ祦涓鍑烘潵鍐呭鍐欏叆杈撳嚭嫻佷腑錛堜粎闄愭枃鏈祦錛?nbsp;
* 涓変釜渚嬪瓙鍙互鐙珛瀛樺湪錛屾墍浠ユ牴鎹渶瑕佸彧鐪嬪叾涓竴涓氨琛屼簡銆?nbsp;
*/ 

import java.io.BufferedReader; 
import java.io.FileInputStream; 
import java.io.FileOutputStream; 
import java.io.IOException; 
import java.io.InputStream; 
import java.io.InputStreamReader; 
import java.io.OutputStream; 
import java.io.OutputStreamWriter; 
import java.io.PrintStream; 
import java.io.PrintWriter; 

public final class AccessTextFile { 

/** 
* 1. 婕旂ず灝嗘祦涓殑鏂囨湰璇誨叆涓涓?StringBuffer 涓?nbsp;
* @throws IOException 
*/ 
public void readToBuffer(StringBuffer buffer, InputStream is) 
throws IOException { 
String line; // 鐢ㄦ潵淇濆瓨姣忚璇誨彇鐨勫唴瀹?nbsp;
BufferedReader reader = new BufferedReader(new InputStreamReader(is)); 
line = reader.readLine(); // 璇誨彇絎竴琛?nbsp;
while (line != null) { // 濡傛灉 line 涓虹┖璇存槑璇誨畬浜?nbsp;
buffer.append(line); // 灝嗚鍒扮殑鍐呭娣誨姞鍒?buffer 涓?nbsp;
buffer.append("\n"); // 娣誨姞鎹㈣絎?nbsp;
line = reader.readLine(); // 璇誨彇涓嬩竴琛?nbsp;



/** 
* 2. 婕旂ず灝?StringBuffer 涓殑鍐呭璇誨嚭鍒版祦涓?nbsp;
*/ 
public void writeFromBuffer(StringBuffer buffer, OutputStream os) { 
// 鐢?PrintStream 鍙互鏂逛究鐨勬妸鍐呭杈撳嚭鍒拌緭鍑烘祦涓?nbsp;
// 鍏跺璞$殑鐢ㄦ硶鍜?System.out 涓鏍?nbsp;
// 錛圫ystem.out 鏈韓灝辨槸 PrintStream 瀵硅薄錛?nbsp;
PrintStream ps = new PrintStream(os); 
ps.print(buffer.toString()); 


/** 
* 3*. 浠庤緭鍏ユ祦涓嫹璐濆唴瀹瑰埌杈撳叆嫻佷腑 
* @throws IOException 
*/ 
public void copyStream(InputStream is, OutputStream os) throws IOException { 
// 榪欎釜璇昏繃榪囩▼鍙互鍙傞槄 readToBuffer 涓殑娉ㄩ噴 
String line; 
BufferedReader reader = new BufferedReader(new InputStreamReader(is)); 
PrintWriter writer = new PrintWriter(new OutputStreamWriter(os)); 
line = reader.readLine(); 
while (line != null) { 
writer.println(line); 
line = reader.readLine(); 

writer.flush(); // 鏈鍚庣‘瀹氳鎶婅緭鍑烘祦涓殑涓滆タ閮藉啓鍑哄幓浜?nbsp;
// 榪欓噷涓嶅叧闂?writer 鏄洜涓?os 鏄粠澶栭潰浼犺繘鏉ョ殑 
// 鏃㈢劧涓嶆槸浠庤繖閲屾墦寮鐨勶紝涔熷氨涓嶄粠榪欓噷鍏抽棴 
// 濡傛灉鍏抽棴鐨?writer錛屽皝瑁呭湪閲岄潰鐨?os 涔熷氨琚叧浜?nbsp;


/** 
* 3. 璋冪敤 copyStream(InputStream, OutputStream) 鏂規(guī)硶鎷瘋礉鏂囨湰鏂囦歡 
*/ 
public void copyTextFile(String inFilename, String outFilename) 
throws IOException { 
// 鍏堟牴鎹緭鍏?杈撳嚭鏂囦歡鐢熸垚鐩稿簲鐨勮緭鍏?杈撳嚭嫻?nbsp;
InputStream is = new FileInputStream(inFilename); 
OutputStream os = new FileOutputStream(outFilename); 
copyStream(is, os); // 鐢?copyStream 鎷瘋礉鍐呭 
is.close(); // is 鏄湪榪欓噷鎵撳紑鐨勶紝鎵浠ラ渶瑕佸叧闂?nbsp;
os.close(); // os 鏄湪榪欓噷鎵撳紑鐨勶紝鎵浠ラ渶瑕佸叧闂?nbsp;


public static void main(String[] args) throws IOException { 
int sw = 1; // 涓夌嫻嬭瘯鐨勯夋嫨寮鍏?nbsp;
AccessTextFile test = new AccessTextFile(); 

switch (sw) { 
case 1: // 嫻嬭瘯璇?nbsp;

InputStream is = new FileInputStream("E:\\test.txt"); 
StringBuffer buffer = new StringBuffer(); 
test.readToBuffer(buffer, is); 
System.out.println(buffer); // 灝嗚鍒?buffer 涓殑鍐呭鍐欏嚭鏉?nbsp;
is.close(); 
break; 

case 2: // 嫻嬭瘯鍐?nbsp;

StringBuffer buffer = new StringBuffer("Only a test\n"); 
test.writeFromBuffer(buffer, System.out); 
break; 

case 3: // 嫻嬭瘯鎷瘋礉 

test.copyTextFile("E:\\test.txt", "E:\\r.txt"); 

break; 





==============

//榪欎釜鏄敤reader鐨勶紝榪欎釜涓嶄細(xì)鍑虹幇寮傚父

import java.io.*;
import java.util.*;

public class Test {
    public static void main(String[] args) throws Exception {
        File file = new File("Test.java");
        BufferedReader reader = new BufferedReader(new FileReader(file));
        String line = null;
        
        while ((line = reader.readLine()) != null) {
            System.out.println(line);
        }
        reader.close();
    }
}

 



luis 2011-11-17 09:30 鍙戣〃璇勮
]]>
Java 璁℃椂 Java timinghttp://www.shnenglu.com/luyulaile/archive/2011/09/26/156894.htmlluisluisMon, 26 Sep 2011 15:15:00 GMThttp://www.shnenglu.com/luyulaile/archive/2011/09/26/156894.htmlhttp://www.shnenglu.com/luyulaile/comments/156894.htmlhttp://www.shnenglu.com/luyulaile/archive/2011/09/26/156894.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/156894.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/156894.htmlapps.hi.baidu.com/share/detail/33559179

Java 紼嬪簭璁℃椂錛圝ava Timing錛?/div>
錛?錛夊浣曠簿紜粰浠g爜璁℃椂錛?/div>

錛?錛夎鏃舵満鍒舵湰韜殑鏃墮棿寮閿錛?/p>

緇忓吀鐨勭▼搴忚鏃跺埄鐢↗ava API鏂規(guī)硶錛?font face="鏂板畫浣?>System.currentTimeMillis()錛屽湪寰呮祴浠g爜鍓嶅悗鏀劇疆涓涓琛紙stopwatch錛夛紝璁$畻鍓嶅悗鏃墮棿宸嵆鍙?/div>
涓嬮潰鏄竴涓紩鑷?#8220;”鐨剆topwatch綾伙紝
import java.io.PrintStream;

final class Timer{ 

    private long startTime;
    private long endTime;
    public Timer() {   reset(); }

    public void start() {
        System.gc();
        startTime = System.currentTimeMillis();
    } 
    public void end() {
        System.gc();
        endTime = System.currentTimeMillis();
     }
    public long duration() {
        return (endTime - startTime);
    }
    public void printDuration( PrintStream out ) {
        long elapsedTimeInSecond = duration() / 1000;
        long remainderInMillis = duration() % 1000;
        out.println("\nTotal execution time:"
              + elapsedTimeInSecond + "."
                + remainderInMillis
                + " seconds");
    }
    public void reset() {
        startTime = 0;
         endTime = 0;
    }
    public static void main( String[] args ) {
        Timer timer = new Timer();
        timer.start();
        for (int i = 0; i < 500; i++) {
           System.out.print("#");
        }
        timer.end();
        timer.printDuration(System.out); }
}
榪欐槸涓縐嶅父瑙勫仛娉曘?/div>
鍦ㄥ綰跨▼鐜涓紝綰跨▼鍒囨崲鐢監(jiān)S鎺у埗錛屽洜姝や袱嬈℃帎琛ㄤ箣闂村彲鑳借褰曚簡琚玂S鍒囨崲鍒扮殑鍏跺畠綰跨▼鐨勬墽琛屾椂闂達(dá)紝榪欐湡闂寸敋鑷沖寘鍚叾瀹冪嚎紼嬬殑闀胯楁椂I/O鎿嶄綔銆?/div>
澶氭鎺愯〃鐒跺悗姹傚叾騫沖潎鍙竴瀹氱▼搴︿笂騫蟲粦榪欑璇樊錛岀劧鑰岋紝瀵逛簬楂樼簿搴﹁姹傦紝涓婅堪API縐掕〃璁℃椂鏂瑰紡鏄湁緙洪櫡鐨勩?/div>
Jesper 鍦?#8220;Use the JVM Profiler Interface for accurate timing”涓弿榪頒簡涓縐嶅埄鐢↗ava Virtual Machine Profiler Interface (JVMPI)鐨勬柟娉?br />
鍙戠幇浜嗕袱涓柊鐨勫嚱鏁?System.currentTimeMillis()鍜孲ystem.nanoTime()銆傚叾涓璖ystem.nanoTime()鏄?.5鐗堜互鍚庣殑鏂板嚱鏁般傝繖涓や釜鍑芥暟閮芥槸榪斿洖褰撳墠緋葷粺鐨勬椂闂達(dá)紝鍙槸System.nanoTime()榪斿洖鐨勭簿搴︽洿楂樸?/span>


luis 2011-09-26 23:15 鍙戣〃璇勮
]]>Java澶氭佷腑鐨勬柟娉曡鐩?/title><link>http://www.shnenglu.com/luyulaile/archive/2011/04/08/143742.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Fri, 08 Apr 2011 10:35:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2011/04/08/143742.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/143742.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2011/04/08/143742.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/143742.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/143742.html</trackback:ping><description><![CDATA[<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 20px; font-family: Arial; font-size: 14px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">澶氭?nbsp;(Polymorphism) 澶у搴旇閮戒笉闄岀敓錛屽畠鏄垜浠紑鍙戦潰鍚戝璞$郴緇熺殑“鑰佹湅鍙?#8221;浜?nbsp;銆備絾鏄佹湅鍙嬩篃浼?xì)鏈?#8220;鐑﹀績”鐨勬椂鍊欏晩錛屽懙鍛點(diǎn)傛湁鏃跺欎笉娉ㄦ剰錛岃繕鐪熶細(xì)琚畠闅懼埌銆傝濡備笅闈㈣繖涓緥瀛愶紙thank Hayden錛夈傚ぇ瀹跺彲浠ュ厛涓嶇湅涓嬮潰鐨勭瓟妗堬紝鍦ㄨ嚜宸辮剳嫻蜂腑榪愯涓閬擄紝鐪嬬湅鑷繁鎯崇殑璺熷疄闄呯粨鏋滄槸鍚︾浉絎︺?br style="line-height: normal" /> <div style="border-bottom: #cccccc 1px solid; filter: none; border-left: #cccccc 1px solid; padding-bottom: 5px; line-height: normal; background-color: #f3f3f3; margin: 5px 20px; padding-left: 5px; padding-right: 5px; zoom: 1 !important; font-family: Arial; word-wrap: break-word; visibility: visible !important; font-size: 14px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 5px; background-origin: initial; background-clip: initial">public class Polymorphism{<br style="line-height: normal" /> public static void main(String[] args) {<br style="line-height: normal" />  A b = new B();<br style="line-height: normal" />  b.fb();<br style="line-height: normal" /> }<br style="line-height: normal" />}</div> <div style="border-bottom: #cccccc 1px solid; filter: none; border-left: #cccccc 1px solid; padding-bottom: 5px; line-height: normal; background-color: #f3f3f3; margin: 5px 20px; padding-left: 5px; padding-right: 5px; zoom: 1 !important; font-family: Arial; word-wrap: break-word; visibility: visible !important; font-size: 14px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 5px; background-origin: initial; background-clip: initial">class A {<br style="line-height: normal" /> public A(){<br style="line-height: normal" />  <br style="line-height: normal" /> }<br style="line-height: normal" /> public void fa() {<br style="line-height: normal" />  System.out.println("CLASS A :Function fa Runing......");<br style="line-height: normal" /> }<br style="line-height: normal" /><br style="line-height: normal" /> public void fb() {<br style="line-height: normal" />  System.out.println("CLASS A :Function fb Runing......");<br style="line-height: normal" />  fa();<br style="line-height: normal" />  System.out.println("CLASS A :Function fb Stop......");<br style="line-height: normal" /> }<br style="line-height: normal" />}</div> <div style="border-bottom: #cccccc 1px solid; filter: none; border-left: #cccccc 1px solid; padding-bottom: 5px; line-height: normal; background-color: #f3f3f3; margin: 5px 20px; padding-left: 5px; padding-right: 5px; zoom: 1 !important; font-family: Arial; word-wrap: break-word; visibility: visible !important; font-size: 14px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 5px; background-origin: initial; background-clip: initial">class B extends A {<br style="line-height: normal" /> public B(){<br style="line-height: normal" /> }<br style="line-height: normal" /> public void fa() {<br style="line-height: normal" />  System.out.println("CLASS B :Function fa Runing......");<br style="line-height: normal" /> }<br style="line-height: normal" /><br style="line-height: normal" /> public void fb() {<br style="line-height: normal" />  System.out.println("CLASS B :Function fb Runing......");<br style="line-height: normal" />  super.fb();<br style="line-height: normal" />  System.out.println("CLASS B :Function fb Stop......");<br style="line-height: normal" /> }<br style="line-height: normal" />}</div> 涓嬮潰鏄畠鐨勮繍琛岀粨鏋滐細(xì)<br style="line-height: normal" /> <div style="border-bottom: #cccccc 1px solid; filter: none; border-left: #cccccc 1px solid; padding-bottom: 5px; line-height: normal; background-color: #f3f3f3; margin: 5px 20px; padding-left: 5px; padding-right: 5px; zoom: 1 !important; font-family: Arial; word-wrap: break-word; visibility: visible !important; font-size: 14px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 5px; background-origin: initial; background-clip: initial">CLASS B :Function fb Runing......<br style="line-height: normal" />CLASS A :Function fb Runing......<br style="line-height: normal" />CLASS B :Function fa Runing......<br style="line-height: normal" />CLASS A :Function fb Stop......<br style="line-height: normal" />CLASS B :Function fb Stop......</div> <p style="line-height: normal">   鎬庝箞鏍鳳紝鐚滃緇撴灉浜嗗悧錛熷鏋滅粨鏋滆窡浣犳兂璞$殑涓妯′竴鏍鳳紝閭d箞鎭枩浣狅紝浣犲澶氭佸凡緇忔湁鍒濇浜嗚В浜嗭紝璧風(fēng)爜鍦ㄨ娉曞眰嬈′笂鏄瘮杈冪啛鎮(zhèn)変簡銆備絾鏄紝鍗冧竾涓嶈“媧嬫磱寰楁剰”錛屼綘鍙惁瑙f瀽緇撴灉涓轟粈涔堜細(xì)鏄繖鏍峰悧錛熸垜浠彲浠ュ厛鏉ユ⒊鐞嗕竴涓嬬▼搴忔祦紼嬶細(xì)<br style="line-height: normal" />   1銆佽繍琛宮ain鍑芥暟錛屽垱寤築瀵硅薄(<span style="color: red">A b = new B(),瀹屽叏鍙互鏇夸唬B b=new B();</span>)錛岃皟鐢˙鐨勬柟娉昮b錛屼簬鏄墦鍗板嚭"CLASS B :Function fb Runing......"錛岄兘鍦ㄦ儏鐞嗕箣涓?br style="line-height: normal" />   2銆佹墽琛宻uper.fb()錛岃皟鐢ㄧ埗綾籄鐨勬柟娉昮b錛岄鍏堟墦鍗板嚭"CLASS A :Function fb Runing......"錛岄鏂欎箣涓?br style="line-height: normal" />   3銆佹墽琛屾柟娉昮a()錛屾墦鍗板嚭"CLASS B :Function fa Runing......"錛屽憙錛熷鎬簡錛屼負(fù)浠涔堜笉鏄墽琛孉鐨勬柟娉昮a(),鑰屾槸瀛愮被B涓殑fa()鍛紵<strong style="line-height: normal">褰撳墠琚墽琛岀殑鏄被A鐨勬柟娉曪紝閭d箞铏氭嫙鏈烘壘鍒扮殑搴旇鏄疉綾葷殑Method Table錛屾壘鍒扮殑搴旇鏄疉綾葷殑鏂規(guī)硶fa()鍟婏紵</strong>闅捐В锝?br style="line-height: normal" />   4銆佹墦鍗?CLASS A :Function fb Stop......"錛岃繑鍥?br style="line-height: normal" />   5銆佹墦鍗?strong style="line-height: normal">"</strong>CLASS A :Function fb Stop....."錛岃繑鍥烇紝紼嬪簭緇撴潫銆?br style="line-height: normal" />  鐜板湪闂娓呮浜嗭紝灝辨槸铏氭嫙鏈哄湪鎵ц綾籄鏂規(guī)硶鐨勬椂鍊欐煡鎵劇殑Method Table绔熺劧鏄瓙綾籅鐨勩備負(fù)浠涔堝憿錛熷叾瀹烇紝鍙鎴戜滑娓呮java鏂規(guī)硶璋冪敤鐨勬柟寮忥紝榪欎釜闂灝辮繋鍒冭岃В浜嗐傚湪Java铏氭嫙鏈轟腑錛屾瘡鍚姩涓涓柊鐨勭嚎紼嬶紝铏氭嫙鏈洪兘浼?xì)湄?fù)瀹冨垎閰嶄竴涓狫ava鏍堬紝鑰屾瘡褰撶嚎紼嬭皟鐢ㄤ竴涓猨ava鏂規(guī)硶鏃訛紝铏氭嫙鏈哄氨浼?xì)鍦ㄨ绾拷E嬬殑java鏍堜腑鍘嬪叆涓涓柊甯э紝鐢ㄤ互瀛樺偍鍙傛暟錛屽眬閮ㄥ彉閲忕瓑鏁版嵁銆傛垜浠皢榪欎釜姝e湪琚墽琛岀殑鏂規(guī)硶縐頒負(fù)璇ョ嚎紼嬬殑褰撳墠鏂規(guī)硶錛屽叾鐩稿簲鐨勬爤甯т負(fù)褰撳墠甯с?br style="line-height: normal" />    濂戒簡錛屽綋鎴戜滑璋冪敤涓涓柟娉曟椂錛屾垜浠渶瑕佸線褰撳墠甯т腑鍘嬪叆鍝簺鍙傛暟鍛紵綆鍗曪紝鏂規(guī)硶鐨勫弬鏁板垪琛ㄤ腑涓嶆槸閮借寰楁竻娓呮妤氱殑鍚楋紵鍡紝瀵逛簬C璇█鏉ヨ錛岃繖涓娉曟槸姝g‘鐨勶紝浣嗘槸瀵逛簬璇稿C++錛孞ava錛孭ython絳夐潰鍚戝璞¤璦鏉ヨ錛屽嵈鏄笉瀵圭殑銆?span style="background-color: yellow">澶у榪樿寰楅偅涓?this"鎸囬拡鍚楋紵錛?/span>涓嶉敊錛?strong style="line-height: normal">鍦↗ava涓紝鎵鏈夌殑瀹炰緥鏂規(guī)硶錛圛nstance Method錛夎皟鐢ㄧ殑鏃跺欓兘浼?xì)鎶婂綋鍓嶅璞″帇鍏ュ綋鍓嶅抚涓Q孞ava铏氭嫙鏈烘鏄氳繃榪欎釜鍙傛暟鏉ュ喅瀹氬綋鍓嶆墍浣跨敤鐨勭被錛堥氳繃鍒ゆ柇璇ュ璞$殑綾誨瀷錛?/strong>銆?br style="line-height: normal" />    鍦ㄤ笂闈㈢殑渚嬪瓙涓紝main涓皟鐢╞.fb()鏃訛紝鍘嬪叆鐨勫綋鍓嶅璞¤嚜鐒舵槸B綾誨璞★紝鎴戜滑璁頒負(fù)b銆傚湪B鐨刦b()涓皟鐢╯uper.fb()鏃訛紝鍘嬪叆鐨勫氨鏄垰鍒氬帇鍏ョ殑瀵硅薄錛屼篃灝辨槸b浜嗐傚悓鏍鳳紝鍦ˋ鐨刦b涓皟鐢╢a()鏃訛紝鍘嬪叆鐨勪篃鏄痓銆傚洜姝わ紝鍦ㄤ嬌鐢?nbsp;invokevirtual鎸囦護(hù)璋冪敤fa()鏃訛紝鎵劇殑灝辨槸B鐨勬柟娉曡〃錛堝綋鍓嶅璞鐨勭被鍨嬩負(fù)B錛夛紝涔熷氨鎵ц浜嗙被B鐨刦a浜嗐?br style="line-height: normal" />    榪欑鐜拌薄鍦ㄦ瀯閫犲嚱鏁頒腑鐗瑰埆甯歌錛屽洜涓烘瀯閫犲嚱鏁頒腑浼?xì)闅愬惈鋴社敤璋冪敤鐖毒c葷殑鏋勯犲嚱鏁扮殑錛屽鏋滃湪鐖剁被鐨勬瀯閫犲嚱鏁頒腑璋冪敤浜嗗疄渚嬫柟娉曪紙濡?nbsp;A鐨刦a錛夛紝鑰屽湪瀛愮被涓張瑕嗙洊浜嗚繖涓疄渚嬫柟娉曪紙濡?nbsp;B鐨刦a錛夛紝閭d箞寰楀埌鐨勭粨鏋滃線寰涓嶆槸鎴戜滑鎵瑕佺殑銆傚洜姝わ紝鎴戜滑鏈濂戒笉瑕佸湪鏋勯犲嚱鏁頒腑浣跨敤澶氭佹柟娉曪紝涓嶇劧錛孌ebug浼?xì)寰堢棝鑻︾殑锛?xì)錛?/p> </span></span><img src ="http://www.shnenglu.com/luyulaile/aggbug/143742.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2011-04-08 18:35 <a href="http://www.shnenglu.com/luyulaile/archive/2011/04/08/143742.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java 鏋勯犲嚱鏁?/title><link>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137218.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 22 Dec 2010 12:03:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137218.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/137218.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137218.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/137218.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/137218.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"><img id="Codehighlighter1_17_382_Open_Image" onclick="this.style.display='none'; Codehighlighter1_17_382_Open_Text.style.display='none'; Codehighlighter1_17_382_Closed_Image.style.display='inline'; Codehighlighter1_17_382_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_17_382_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_17_382_Closed_Text.style.display='none'; Codehighlighter1_17_382_Open_Image.style.display='inline'; Codehighlighter1_17_382_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Msg </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_17_382_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_17_382_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    Agent.agent_actor actor;<br /><img id="Codehighlighter1_46_132_Open_Image" onclick="this.style.display='none'; Codehighlighter1_46_132_Open_Text.style.display='none'; Codehighlighter1_46_132_Closed_Image.style.display='inline'; Codehighlighter1_46_132_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_46_132_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_46_132_Closed_Text.style.display='none'; Codehighlighter1_46_132_Open_Image.style.display='inline'; Codehighlighter1_46_132_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_46_132_Closed_Text">/** */</span><span id="Codehighlighter1_46_132_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000">娑堟伅綾誨瀷錛氭帴鍙楀鏂瑰嚭浠?璋堝垽澶辮觸閫鍑?鍑轟環(huán);瀵規(guī)柟鎺ュ彈鑷繁鍑轟環(huán)璋堝垽鎴愬姛;鏂拌繘鍏ヨ皥鍒?鍚戞墍鏈夊鎵嬪嚭瀹屼環(huán)鎴栧凡緇忛鍑鴻皥鍒ょ粨鏉熷洖絳旓紝娉ㄦ剰ACCPET鍙悜鍙戝嚭涓涓猘gent鍙戝嚭</span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /><img id="Codehighlighter1_146_186_Open_Image" onclick="this.style.display='none'; Codehighlighter1_146_186_Open_Text.style.display='none'; Codehighlighter1_146_186_Closed_Image.style.display='inline'; Codehighlighter1_146_186_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_146_186_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_146_186_Closed_Text.style.display='none'; Codehighlighter1_146_186_Open_Image.style.display='inline'; Codehighlighter1_146_186_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: #0000ff">enum</span><span style="color: #000000"> answer</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_146_186_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_146_186_Open_Text"><span style="color: #000000">{ACCEPT,REJECT,OFFER,OK,NEWMEM,ENDANSWER}</span></span><span style="color: #000000">;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    answer msg_type;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    Offer offer;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> from_no;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> to_no;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">double</span><span style="color: #000000"> min[];<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">double</span><span style="color: #000000"> max[];<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    Msg(<br /><img id="Codehighlighter1_289_380_Open_Image" onclick="this.style.display='none'; Codehighlighter1_289_380_Open_Text.style.display='none'; Codehighlighter1_289_380_Closed_Image.style.display='inline'; Codehighlighter1_289_380_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_289_380_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_289_380_Closed_Text.style.display='none'; Codehighlighter1_289_380_Open_Image.style.display='inline'; Codehighlighter1_289_380_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_289_380_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_289_380_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />        min</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">double</span><span style="color: #000000">[Negotiation.NUM_ISSUE</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">];    <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />        max</span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> </span><span style="color: #0000ff">double</span><span style="color: #000000">[Negotiation.NUM_ISSUE</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">];<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> <br />濡傛灉瀵硅薄鎴愬憳涓湁闈炲熀鏈被鍨嬫垚鍛橈紝姣斿涓婁緥涓殑 offer瀵硅薄鏄疢sg鐨勬垚鍛橈紝<br />鍒欏繀欏誨湪鏋勯犲嚱鏁頒腑鍒濆鍖栬瀵硅薄錛屽惁鍒欎負(fù)null銆?br /><br />搴旇灝嗘瀯閫犲嚱鏁癕sg鏀逛負(fù)<br /> Msg()<br /> {<br />  min= new double[Negotiation.NUM_ISSUE+1]; <br />  max=new double[Negotiation.NUM_ISSUE+1];<br />     offer=new Offer();<br /> }<img src ="http://www.shnenglu.com/luyulaile/aggbug/137218.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2010-12-22 20:03 <a href="http://www.shnenglu.com/luyulaile/archive/2010/12/22/137218.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java瀵硅薄鍙?qiáng)鍏跺紩鐢?/title><link>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137162.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 22 Dec 2010 02:33:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137162.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/137162.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2010/12/22/137162.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/137162.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/137162.html</trackback:ping><description><![CDATA[<p> 鍘熸枃鍦板潃錛?span class=f><cite><font color=#0e774a>blog.<strong>csdn</strong>.net/beepbug/archive/2006/08/14/1062790.aspx</font></cite></span><br>      鍒濆Java鏃訛紝鍦ㄥ緢闀夸竴孌墊椂闂撮噷錛屾昏寰楀熀鏈蹇靛緢妯$硦銆傚悗鏉ユ墠鐭ラ亾錛屽湪璁稿Java涔︿腑錛屾妸瀵硅薄鍜屽璞$殑寮曠敤娣蜂負(fù)涓璋堛傚彲鏄紝濡傛灉鎴戝垎涓嶆竻瀵硅薄涓庡璞″紩鐢紝閭e疄鍦ㄦ病娉曞緢濂藉湴鐞嗚В涓嬮潰鐨勯潰鍚戝璞℃妧鏈傛妸鑷繁鐨勪竴鐐硅璇嗗啓涓嬫潵錛屾垨璁歌兘璁╁垵瀛ava鐨勬湅鍙嬩滑灝戣蛋涓鐐瑰集璺?br>       涓轟究浜庤鏄庯紝鎴戜滑鍏堝畾涔変竴涓畝鍗曠殑綾伙細(xì)<br> class Vehicle {<br>int passengers;       <br>int fuelcap;<br>int mpg;<br>}<br>鏈変簡榪欎釜妯℃澘錛屽氨鍙互鐢ㄥ畠鏉ュ垱寤哄璞★細(xì)<br>       Vehicle veh1 = new Vehicle();<br>閫氬父鎶婅繖鏉¤鍙ョ殑鍔ㄤ綔縐頒箣涓哄垱寤轟竴涓璞★紝鍏跺疄錛屽畠鍖呭惈浜嗗洓涓姩浣溿?br>1錛夊彸杈圭殑“new Vehicle”錛屾槸浠ehicle綾諱負(fù)妯℃澘錛屽湪鍫嗙┖闂撮噷鍒涘緩涓涓猇ehicle綾誨璞★紙涔熺畝縐頒負(fù)Vehicle瀵硅薄錛夈?br>2錛夋湯灝劇殑()鎰忓懗鐫錛屽湪瀵硅薄鍒涘緩鍚庯紝绔嬪嵆璋冪敤Vehicle綾葷殑鏋勯犲嚱鏁幫紝瀵瑰垰鐢熸垚鐨勫璞¤繘琛屽垵濮嬪寲銆傛瀯閫犲嚱鏁版槸鑲畾鏈夌殑銆傚鏋滀綘娌″啓錛孞ava浼?xì)缁欎綘琛ヤ笂涓涓粯璁ょ殑鏋勯犲嚱鏁般?br>3錛夊乏杈圭殑“Vehicle veh1”鍒涘緩浜嗕竴涓猇ehicle綾誨紩鐢ㄥ彉閲忋傛墍璋揤ehicle綾誨紩鐢紝灝辨槸浠ュ悗鍙互鐢ㄦ潵鎸囧悜Vehicle瀵硅薄鐨勫璞″紩鐢ㄣ?br>4錛?#8220;=”鎿嶄綔絎︿嬌瀵硅薄寮曠敤鎸囧悜鍒氬垱寤虹殑閭d釜Vehicle瀵硅薄銆?br>鎴戜滑鍙互鎶婅繖鏉¤鍙ユ媶鎴愪袱閮ㄥ垎錛?br>Vehicle veh1;<br>veh1 = new Vehicle();<br>鏁堟灉鏄竴鏍風(fēng)殑銆傝繖鏍峰啓錛屽氨姣旇緝娓呮浜嗭紝鏈変袱涓疄浣擄細(xì)涓鏄璞″紩鐢ㄥ彉閲忥紝涓鏄璞℃湰韜?br>       鍦ㄥ爢絀洪棿閲屽垱寤虹殑瀹炰綋錛屼笌鍦ㄦ暟鎹浠ュ強(qiáng)鏍堢┖闂撮噷鍒涘緩鐨勫疄浣撲笉鍚屻傚敖綆″畠浠篃鏄‘紜疄瀹炲瓨鍦ㄧ殑瀹炰綋錛屼絾鏄紝鎴戜滑鐪嬩笉瑙侊紝涔熸懜涓嶇潃銆備笉浠呭姝わ紝鎴戜滑浠旂粏鐮旂┒涓涓嬬浜屽彞錛屾壘鎵懼垰鍒涘緩鐨勫璞″彨浠涔堝悕瀛楋紵鏈変漢璇達(dá)紝瀹冨彨“Vehicle”銆備笉瀵癸紝“Vehicle”鏄被錛堝璞$殑鍒涘緩妯℃澘錛夌殑鍚嶅瓧銆備竴涓猇ehicle綾誨彲浠ユ嵁姝ゅ垱寤哄嚭鏃犳暟涓璞★紝榪欎簺瀵硅薄涓嶅彲鑳藉叏鍙?#8220;Vehicle”銆?br>       瀵硅薄榪炲悕閮芥病鏈夛紝娌℃硶鐩存帴璁塊棶瀹冦傛垜浠彧鑳介氳繃瀵硅薄寮曠敤鏉ラ棿鎺ヨ闂璞°?br>       涓轟簡褰㈣薄鍦拌鏄庡璞°佸紩鐢ㄥ強(qiáng)瀹冧滑涔嬮棿鐨勫叧緋伙紝鍙互鍋氫竴涓垨璁鎬笉寰堝Ε褰撶殑姣斿柣銆傚璞″ソ姣旀槸涓鍙緢澶х殑姘旂悆錛屽ぇ鍒版垜浠姄涓嶄綇瀹冦傚紩鐢ㄥ彉閲忔槸涓鏍圭懷錛屽彲浠ョ敤鏉ョ郴姹界悆銆?br>       濡傛灉鍙墽琛屼簡絎竴鏉¤鍙ワ紝榪樻病鎵ц絎簩鏉★紝姝ゆ椂鍒涘緩鐨勫紩鐢ㄥ彉閲弙eh1榪樻病鎸囧悜浠諱綍涓涓璞★紝瀹冪殑鍊兼槸null銆傚紩鐢ㄥ彉閲忓彲浠ユ寚鍚戞煇涓璞★紝鎴栬呬負(fù)null銆傚畠鏄竴鏍圭懷錛屼竴鏍硅繕娌℃湁緋諱笂浠諱綍涓涓苯鐞冪殑緇熾傛墽琛屼簡絎簩鍙ュ悗錛屼竴鍙柊姹界悆鍋氬嚭鏉ヤ簡錛屽茍琚郴鍦╲eh1榪欐牴緇充笂銆傛垜浠姄浣忚繖鏍圭懷錛屽氨絳変簬鎶撲綇浜嗛偅鍙苯鐞冦?br>       鍐嶆潵涓鍙ワ細(xì)<br>       Vehicle veh2;<br>灝卞張鍋氫簡涓鏍圭懷錛岃繕娌$郴涓婃苯鐞冦傚鏋滃啀鍔犱竴鍙ワ細(xì)<br>       veh2 = veh1;<br>緋諱笂浜嗐傝繖閲岋紝鍙戠敓浜嗗鍒惰涓恒備絾鏄紝瑕佽鏄庣殑鏄紝瀵硅薄鏈韓騫舵病鏈夎澶嶅埗錛岃澶嶅埗鐨勫彧鏄璞″紩鐢ㄣ傜粨鏋滄槸錛寁eh2涔熸寚鍚戜簡veh1鎵鎸囧悜鐨勫璞°備袱鏍圭懷緋葷殑鏄悓涓鍙苯鐞冦?br>       濡傛灉鐢ㄤ笅鍙ュ啀鍒涘緩涓涓璞★細(xì)<br>veh2 = new Vehicle();<br>鍒欏紩鐢ㄥ彉閲弙eh2鏀規(guī)寚鍚戠浜屼釜瀵硅薄銆?br>       浠庝互涓婂彊榪板啀鎺ㄦ紨涓嬪幓錛屾垜浠彲浠ヨ幏寰椾互涓嬬粨璁猴細(xì)錛?錛変竴涓璞″紩鐢ㄥ彲浠ユ寚鍚?涓垨1涓璞★紙涓鏍圭懷瀛愬彲浠ヤ笉緋繪苯鐞冿紝涔熷彲浠ョ郴涓涓苯鐞冿級錛涳紙2錛変竴涓璞″彲浠ユ湁N涓紩鐢ㄦ寚鍚戝畠錛堝彲浠ユ湁N鏉$懷瀛愮郴浣忎竴涓苯鐞冿級銆?br>       濡傛灉鍐嶆潵涓嬮潰璇彞錛?br>       veh1 = veh2;<br>鎸変笂闈㈢殑鎺ㄦ柇錛寁eh1涔熸寚鍚戜簡絎簩涓璞°傝繖涓病闂銆傞棶棰樻槸絎竴涓璞″憿錛熸病鏈変竴鏉$懷瀛愮郴浣忓畠錛屽畠椋炰簡銆傚鏁頒功閲岃錛屽畠琚獼ava鐨勫瀮鍦懼洖鏀舵満鍒跺洖鏀朵簡銆傝繖涓嶇‘鍒囥傛紜湴璇達(dá)紝瀹冨凡鎴愪負(fù)鍨冨溇鍥炴敹鏈哄埗鐨勫鐞嗗璞°傝嚦浜庝粈涔堟椂鍊欑湡姝h鍥炴敹錛岄偅瑕佺湅鍨冨溇鍥炴敹鏈哄埗鐨勫績鎯呬簡銆?br>       鐢辨鐪嬫潵錛屼笅闈㈢殑璇彞搴旇涓嶅悎娉曞惂錛熻嚦灝戞槸娌$敤鐨勫惂錛?br>new Vehicle();<br>涓嶅銆傚畠鏄悎娉曠殑錛岃屼笖鍙敤鐨勩傝濡傦紝濡傛灉鎴戜滑浠呬粎涓轟簡鎵撳嵃鑰岀敓鎴愪竴涓璞★紝灝變笉闇瑕佺敤寮曠敤鍙橀噺鏉ョ郴浣忓畠銆傛渶甯歌鐨勫氨鏄墦鍗板瓧絎︿覆錛?br>       System.out.println(“I am Java!”);<br>瀛楃涓插璞?#8220;I am Java!”鍦ㄦ墦鍗板悗鍗寵涓㈠純銆傛湁浜烘妸榪欑瀵硅薄縐頒箣涓轟復(fù)鏃跺璞°?br>       瀵硅薄涓庡紩鐢ㄧ殑鍏崇郴灝嗘寔緇埌瀵硅薄鍥炴敹銆備絾鏄紝鍏充簬榪欎竴鐐癸紝鎵撶畻鍦ㄤ笅鏂?#8220;綆榪癑ava鍥炴敹鏈哄埗”鍐嶈銆?br><br><br>-------------------<br>琛ュ厖錛?br>test綾?/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"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><span style="COLOR: #000000">package test;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br><img id=Codehighlighter1_33_273_Open_Image onclick="this.style.display='none'; Codehighlighter1_33_273_Open_Text.style.display='none'; Codehighlighter1_33_273_Closed_Image.style.display='inline'; Codehighlighter1_33_273_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_33_273_Closed_Image onclick="this.style.display='none'; Codehighlighter1_33_273_Closed_Text.style.display='none'; Codehighlighter1_33_273_Open_Image.style.display='inline'; Codehighlighter1_33_273_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.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"> test </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_33_273_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_33_273_Open_Text><span style="COLOR: #000000">{<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> value;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"></span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> price;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">     test()<br><img id=Codehighlighter1_89_136_Open_Image onclick="this.style.display='none'; Codehighlighter1_89_136_Open_Text.style.display='none'; Codehighlighter1_89_136_Closed_Image.style.display='inline'; Codehighlighter1_89_136_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_89_136_Closed_Image onclick="this.style.display='none'; Codehighlighter1_89_136_Closed_Text.style.display='none'; Codehighlighter1_89_136_Open_Image.style.display='inline'; Codehighlighter1_89_136_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_89_136_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_89_136_Open_Text><span style="COLOR: #000000">{<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">         </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">         </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.price</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">     }</span></span><span style="COLOR: #000000"><br><img id=Codehighlighter1_177_270_Open_Image onclick="this.style.display='none'; Codehighlighter1_177_270_Open_Text.style.display='none'; Codehighlighter1_177_270_Closed_Image.style.display='inline'; Codehighlighter1_177_270_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_177_270_Closed_Image onclick="this.style.display='none'; Codehighlighter1_177_270_Closed_Text.style.display='none'; Codehighlighter1_177_270_Open_Image.style.display='inline'; Codehighlighter1_177_270_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.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_177_270_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_177_270_Open_Text><span style="COLOR: #000000">{<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    test _test</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> test();<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    fun.changeTest(_test);<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    System.</span><span style="COLOR: #0000ff">out</span><span style="COLOR: #000000">.println(_test.value);<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span></div> fun錛氱被<br> <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"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><span style="COLOR: #000000">package test;<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br><img id=Codehighlighter1_32_100_Open_Image onclick="this.style.display='none'; Codehighlighter1_32_100_Open_Text.style.display='none'; Codehighlighter1_32_100_Closed_Image.style.display='inline'; Codehighlighter1_32_100_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_32_100_Closed_Image onclick="this.style.display='none'; Codehighlighter1_32_100_Closed_Text.style.display='none'; Codehighlighter1_32_100_Open_Image.style.display='inline'; Codehighlighter1_32_100_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.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"> fun </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_32_100_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_32_100_Open_Text><span style="COLOR: #000000">{<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.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"> changeTest(test _test)<br><img id=Codehighlighter1_76_98_Open_Image onclick="this.style.display='none'; Codehighlighter1_76_98_Open_Text.style.display='none'; Codehighlighter1_76_98_Closed_Image.style.display='inline'; Codehighlighter1_76_98_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_76_98_Closed_Image onclick="this.style.display='none'; Codehighlighter1_76_98_Closed_Text.style.display='none'; Codehighlighter1_76_98_Open_Image.style.display='inline'; Codehighlighter1_76_98_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_76_98_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_76_98_Open_Text><span style="COLOR: #000000">{<br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">   _test.value</span><span style="COLOR: #000000">=-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;    <br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span></div> <br>鎵ц鍙風(fēng)殑杈撳嚭涓猴細(xì)<br>-1,<br>璇存槑浼犻掑紩鐢ㄤ慨鏀逛簡瀵硅薄鐨勫箋? <img src ="http://www.shnenglu.com/luyulaile/aggbug/137162.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2010-12-22 10:33 <a href="http://www.shnenglu.com/luyulaile/archive/2010/12/22/137162.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java涓叏灞鍙橀噺鐨勫疄鐜?/title><link>http://www.shnenglu.com/luyulaile/archive/2010/12/21/137139.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Tue, 21 Dec 2010 12:03:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2010/12/21/137139.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/137139.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2010/12/21/137139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/137139.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/137139.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"><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">import java.util.</span><span style="color: #000000">*</span><span style="color: #000000">;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" alt="" />import java.math.</span><span style="color: #000000">*</span><span style="color: #000000">;<br /><img id="Codehighlighter1_65_304_Open_Image" onclick="this.style.display='none'; Codehighlighter1_65_304_Open_Text.style.display='none'; Codehighlighter1_65_304_Closed_Image.style.display='inline'; Codehighlighter1_65_304_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_65_304_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_65_304_Closed_Text.style.display='none'; Codehighlighter1_65_304_Open_Image.style.display='inline'; Codehighlighter1_65_304_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.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"> Negotiation </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_65_304_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_65_304_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> final </span><span style="color: #0000ff">int</span><span style="color: #000000">  NUM_MAXTIME</span><span style="color: #000000">=</span><span style="color: #000000">10</span><span style="color: #000000">;<br /><img id="Codehighlighter1_109_117_Open_Image" onclick="this.style.display='none'; Codehighlighter1_109_117_Open_Text.style.display='none'; Codehighlighter1_109_117_Closed_Image.style.display='inline'; Codehighlighter1_109_117_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_109_117_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_109_117_Closed_Text.style.display='none'; Codehighlighter1_109_117_Open_Image.style.display='inline'; Codehighlighter1_109_117_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_109_117_Closed_Text">/**/</span><span id="Codehighlighter1_109_117_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000">*鏈澶ц疆嬈?/span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> final </span><span style="color: #0000ff">int</span><span style="color: #000000"> MAX_TURN</span><span style="color: #000000">=</span><span style="color: #000000">50</span><span style="color: #000000">;<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> final </span><span style="color: #0000ff">int</span><span style="color: #000000"> NUM_ISSUE</span><span style="color: #000000">=</span><span style="color: #000000">3</span><span style="color: #000000">;<br /><img id="Codehighlighter1_194_203_Open_Image" onclick="this.style.display='none'; Codehighlighter1_194_203_Open_Text.style.display='none'; Codehighlighter1_194_203_Closed_Image.style.display='inline'; Codehighlighter1_194_203_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_194_203_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_194_203_Closed_Text.style.display='none'; Codehighlighter1_194_203_Open_Image.style.display='inline'; Codehighlighter1_194_203_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_194_203_Closed_Text">/**/</span><span id="Codehighlighter1_194_203_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000">*鏈澶у鎵嬫暟</span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> final </span><span style="color: #0000ff">int</span><span style="color: #000000"> MAX_PARTNER</span><span style="color: #000000">=</span><span style="color: #000000">10</span><span style="color: #000000">;  <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />    <br /><img id="Codehighlighter1_250_266_Open_Image" onclick="this.style.display='none'; Codehighlighter1_250_266_Open_Text.style.display='none'; Codehighlighter1_250_266_Closed_Image.style.display='inline'; Codehighlighter1_250_266_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_250_266_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_250_266_Closed_Text.style.display='none'; Codehighlighter1_250_266_Open_Image.style.display='inline'; Codehighlighter1_250_266_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_250_266_Closed_Text">/**/</span><span id="Codehighlighter1_250_266_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000">*璋堝垽榪囩▼<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />     * <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />     </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">void</span><span style="color: #000000"> negotiationProcess()<br /><img id="Codehighlighter1_295_301_Open_Image" onclick="this.style.display='none'; Codehighlighter1_295_301_Open_Text.style.display='none'; Codehighlighter1_295_301_Closed_Image.style.display='inline'; Codehighlighter1_295_301_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_295_301_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_295_301_Closed_Text.style.display='none'; Codehighlighter1_295_301_Open_Image.style.display='inline'; Codehighlighter1_295_301_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.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_295_301_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_295_301_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" />        <br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif" alt="" /><br /><img align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> 鐒跺悗鍦ㄥ叾浠栫被涓彧闇瑕佽皟鐢?Negotiation.NUM_MAXTIME,NUM_ISSUE,絳夊?img src ="http://www.shnenglu.com/luyulaile/aggbug/137139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2010-12-21 20:03 <a href="http://www.shnenglu.com/luyulaile/archive/2010/12/21/137139.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java瀵硅薄鏁扮粍http://www.shnenglu.com/luyulaile/archive/2010/12/21/137138.htmlluisluisTue, 21 Dec 2010 11:57:00 GMThttp://www.shnenglu.com/luyulaile/archive/2010/12/21/137138.htmlhttp://www.shnenglu.com/luyulaile/comments/137138.htmlhttp://www.shnenglu.com/luyulaile/archive/2010/12/21/137138.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/137138.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/137138.html闃呰鍏ㄦ枃

luis 2010-12-21 19:57 鍙戣〃璇勮
]]>
Java 鍛藉悕瑙勮寖zthttp://www.shnenglu.com/luyulaile/archive/2010/12/21/137128.htmlluisluisTue, 21 Dec 2010 08:44:00 GMThttp://www.shnenglu.com/luyulaile/archive/2010/12/21/137128.htmlhttp://www.shnenglu.com/luyulaile/comments/137128.htmlhttp://www.shnenglu.com/luyulaile/archive/2010/12/21/137128.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/137128.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/137128.html瀹屽叏鐗坖ava瑙勮寖錛?a >http://www.huihoo.org/code/java_code_conventions.html#71

 



luis 2010-12-21 16:44 鍙戣〃璇勮
]]>
[杞澆]Vector閬嶅巻http://www.shnenglu.com/luyulaile/archive/2010/01/26/106444.htmlluisluisTue, 26 Jan 2010 01:08:00 GMThttp://www.shnenglu.com/luyulaile/archive/2010/01/26/106444.htmlhttp://www.shnenglu.com/luyulaile/comments/106444.htmlhttp://www.shnenglu.com/luyulaile/archive/2010/01/26/106444.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/106444.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/106444.htmlimport java.util.Iterator;
import java.util.Vector;

public class VectorIterator implements Iterator{
    
     private Vector v;
    
     private int currentIndex=0;
    
     public VectorIterator(){
        
     }
    
     public VectorIterator(Vector v){
         this.v=v;
     }    

     public boolean hasNext() {                
         if(this.currentIndex<this.v.size()){
             System.out.println("current index is :   "+this.currentIndex);
             return true;
         }else{
             System.out.println("out of the bound ");
         }
         return false;
     }

     public Object next() {            
         return this.v.get(this.currentIndex++);
     }

     public void remove() {
         this.v.remove(this.currentIndex);        
     }
    
    
     public static void main(String[] args){
         Vector v=new Vector();
         v.add(new String("aaa"));
         v.add(new String("bbb"));
         v.add(new String("ccc"));
         //System.out.println(v);
        
        
         Iterator iter=new VectorIterator(v);
         while(iter.hasNext()){
             String str=(String)iter.next();
             System.out.println(str);
         }
     }
    
}

luis 2010-01-26 09:08 鍙戣〃璇勮
]]>
java Vector鎺掑簭鍙?qiáng)鐢ㄦ?/title><link>http://www.shnenglu.com/luyulaile/archive/2010/01/26/106439.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Mon, 25 Jan 2010 17:48:00 GMT</pubDate><guid>http://www.shnenglu.com/luyulaile/archive/2010/01/26/106439.html</guid><wfw:comment>http://www.shnenglu.com/luyulaile/comments/106439.html</wfw:comment><comments>http://www.shnenglu.com/luyulaile/archive/2010/01/26/106439.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/luyulaile/comments/commentRss/106439.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/luyulaile/services/trackbacks/106439.html</trackback:ping><description><![CDATA[<p>temp=CustomerMaker.quickPassQueue.get(0);//鑾峰緱棣栧厓绱?br />  CustomerMaker.quickPassQueue.remove(0);//鍒犻櫎棣栧厓绱?br /><br /> quickPassQueue.add();鍦ㄦ湯灝炬坊鍔犲厓绱?br />----婕旂ず紼嬪簭-----<br /><br />import java.util.*;<br />import java.io.*;<br /><br />public class test<br />{<br />Vector v = new Vector();<br /><br />public void testMethod(){<br />  v.add("a");<br />  v.add("b");<br />  v.add("c");<br /><br />  System.out.println("\n鍘熸潵鐨剉ecotr");<br />  for(int i=0;i<v.size();i++){<br />   System.out.println("\n"+" index is: "+ i + " element is: " +v.get(i));<br />  }<br /><br />  v.remove(0);<br /><br />  System.out.println("\n鍘繪帀涓涓獀ector涓涓涓厓绱?);<br />  for(int i=0;i<v.size();i++){<br />   System.out.println("\n"+" index is: "+ i + " element is: " +v.get(i));<br />  }<br />}<br /><br />public static void main(String[] args) <br />{<br />  test t = new test();<br />  t.testMethod();<br />  System.out.println("Hello World!");<br />}<br />}<br />-----------------鎺掑簭紼嬪簭------------------------------<br />import java.util.*;</p> <p>class MyCompare implements Comparator //瀹炵幇Comparator錛屽畾涔夎嚜宸辯殑姣旇緝鏂規(guī)硶<br />{<br />public int compare(Object o1, Object o2) {<br />Elem e1=(Elem)o1;<br />Elem e2=(Elem)o2;<br /><br />if(e1.get() > e2.get())//榪欐牱姣旇緝鏄檷搴?濡傛灉鎶?1鏀規(guī)垚1灝辨槸鍗囧簭.<br />{<br />   return -1;<br />}<br />else if(e1.get()<e2.get())<br />{<br />   return 1;<br />}<br />else<br />{<br />   return 0;<br />}<br />}<br />}</p> <p>class Elem {<br />private int iVal;</p> <p>public Elem(int i) {<br />   this.iVal = i;<br />}</p> <p>public int get() {<br />   return this.iVal;<br />}<br />}</p> <p>public class Vector1 {<br />public static void main(String[] args) {<br />   List v = new Vector();<br />   v.add(new Elem(1));<br />   v.add(new Elem(22));<br />   v.add(new Elem(3));<br />   v.add(new Elem(14));<br />   Comparator ct = new MyCompare();<br />   Collections.sort(v, ct);<br />   for (int i = 0; i < v.size(); i++)<br />    System.out.println(((Elem) v.get(i)).get());</p> <p>}</p> <p>}<br /></p><img src ="http://www.shnenglu.com/luyulaile/aggbug/106439.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/luyulaile/" target="_blank">luis</a> 2010-01-26 01:48 <a href="http://www.shnenglu.com/luyulaile/archive/2010/01/26/106439.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[杞澆]浣跨敤 Java 緙栫▼璇█瀹炵幇綰跨▼ http://www.shnenglu.com/luyulaile/archive/2010/01/26/106437.htmlluisluisMon, 25 Jan 2010 17:17:00 GMThttp://www.shnenglu.com/luyulaile/archive/2010/01/26/106437.htmlhttp://www.shnenglu.com/luyulaile/comments/106437.htmlhttp://www.shnenglu.com/luyulaile/archive/2010/01/26/106437.html#Feedback0http://www.shnenglu.com/luyulaile/comments/commentRss/106437.htmlhttp://www.shnenglu.com/luyulaile/services/trackbacks/106437.html浣跨敤 Java 緙栫▼璇█瀹炵幇綰跨▼

銆銆Java緙栫▼璇█浣垮綰跨▼濡傛綆鍗曟湁鏁堬紝浠ヨ嚧浜庢煇浜涚▼搴忓憳璇村畠瀹為檯涓婃槸鑷劧鐨勩傚敖綆″湪 Java 涓嬌鐢ㄧ嚎紼嬫瘮鍦ㄥ叾浠栬璦涓瀹規(guī)槗寰楀錛屼粛鐒舵湁涓浜涙蹇甸渶瑕佹帉鎻°傝璁頒綇鐨勪竴浠墮噸瑕佺殑浜嬫儏鏄?/span> main() 鍑芥暟涔熸槸涓涓嚎紼嬶紝騫跺彲鐢ㄦ潵鍋氭湁鐢ㄧ殑宸ヤ綔銆傜▼搴忓憳鍙湁鍦ㄩ渶瑕佸涓嚎紼嬫椂鎵嶉渶瑕佸垱寤烘柊鐨勭嚎紼嬨?/span>

銆銆Thread 綾?/span>

銆銆Thread 綾繪槸涓涓叿浣撶殑綾伙紝鍗充笉鏄娊璞$被錛岃綾誨皝瑁呬簡綰跨▼鐨勮涓恒傝鍒涘緩涓涓嚎紼嬶紝紼嬪簭鍛樺繀欏誨垱寤轟竴涓粠 Thread 綾誨鍑虹殑鏂扮被銆傜▼搴忓憳蹇呴』瑕嗙洊 Thread 鐨?/span> run() 鍑芥暟鏉ュ畬鎴愭湁鐢ㄧ殑宸ヤ綔銆傜敤鎴峰茍涓嶇洿鎺ヨ皟鐢ㄦ鍑芥暟錛涜屾槸蹇呴』璋冪敤 Thread 鐨?/span> start() 鍑芥暟錛岃鍑芥暟鍐嶈皟鐢?/span> run()銆備笅闈㈢殑浠g爜璇存槑浜嗗畠鐨勭敤娉曪細(xì)

銆銆鍒涘緩涓や釜鏂扮嚎紼?/span>

import java.util.*;

class TimePrinter extends Thread {
int pauseTime;
String name;
public TimePrinter(int x, String n) {
銆銆pauseTime = x;
銆銆name = n;
}

public void run() {
銆銆while(true) {
銆銆銆try {
銆銆銆銆System.out.println(name + ":" + new Date(System.currentTimeMillis()));
銆銆銆銆Thread.sleep(pauseTime);
銆銆銆} catch(Exception e) {
銆銆銆銆System.out.println(e);
銆銆銆}
銆銆}
}

static public void main(String args[]) {
銆銆TimePrinter tp1 = new TimePrinter(1000, "Fast Guy");
銆銆tp1.start();
銆銆TimePrinter tp2 = new TimePrinter(3000, "Slow Guy");
銆銆tp2.start();

}
}


銆銆鍦ㄦ湰渚嬩腑錛屾垜浠彲浠ョ湅鍒頒竴涓畝鍗曠殑紼嬪簭錛屽畠鎸変袱涓笉鍚岀殑鏃墮棿闂撮殧錛?/span>1 縐掑拰 3 縐掞級鍦ㄥ睆騫曚笂鏄劇ず褰撳墠鏃墮棿銆傝繖鏄氳繃鍒涘緩涓や釜鏂扮嚎紼嬫潵瀹屾垚鐨勶紝鍖呮嫭 main() 鍏變笁涓嚎紼嬨備絾鏄紝鍥犱負(fù)鏈夋椂瑕佷綔涓虹嚎紼嬭繍琛岀殑綾誨彲鑳藉凡緇忔槸鏌愪釜綾誨眰嬈$殑涓閮ㄥ垎錛屾墍浠ュ氨涓嶈兘鍐嶆寜榪欑鏈哄埗鍒涘緩綰跨▼銆傝櫧鐒跺湪鍚屼竴涓被涓彲浠ュ疄鐜頒換鎰忔暟閲忕殑鎺ュ彛錛屼絾 Java 緙栫▼璇█鍙厑璁鎬竴涓被鏈変竴涓埗綾匯傚悓鏃訛紝鏌愪簺紼嬪簭鍛橀伩鍏嶄粠 Thread 綾誨鍑猴紝鍥犱負(fù)瀹冨己鍔犱簡綾誨眰嬈°傚浜庤繖縐嶆儏鍐碉紝灝辮 runnable 鎺ュ彛銆?/span>

銆銆Runnable 鎺ュ彛

銆銆姝ゆ帴鍙e彧鏈変竴涓嚱鏁幫紝run()錛屾鍑芥暟蹇呴』鐢卞疄鐜頒簡姝ゆ帴鍙g殑綾誨疄鐜般備絾鏄紝灝辮繍琛岃繖涓被鑰岃錛屽叾璇箟涓庡墠涓涓ず渚嬬◢鏈変笉鍚屻傛垜浠彲浠ョ敤 runnable 鎺ュ彛鏀瑰啓鍓嶄竴涓ず渚嬨傦紙涓嶅悓鐨勯儴鍒嗙敤榛戜綋琛ㄧず銆傦級

銆銆鍒涘緩涓や釜鏂扮嚎紼嬭屼笉寮哄姞綾誨眰嬈?/span>

import java.util.*;

class TimePrinter implements Runnable {
int pauseTime;
String name;
public TimePrinter(int x, String n) {
銆銆pauseTime = x;
銆銆name = n;
}

public void run() {
銆銆while(true) {
銆銆銆try {
銆銆銆銆System.out.println(name + ":" + new Date(System.currentTimeMillis()));
銆銆銆銆Thread.sleep(pauseTime);
銆銆銆} catch(Exception e) {
銆銆銆銆System.out.println(e);
銆銆銆}
銆銆}
}

static public void main(String args[]) {
銆銆Thread t1 = new Thread(new TimePrinter(1000, "Fast Guy"));
銆銆t1.start();
銆銆Thread t2 = new Thread(new TimePrinter(3000, "Slow Guy"));
銆銆t2.start();
}
}



銆銆璇鋒敞鎰忥紝褰撲嬌鐢?/span> runnable 鎺ュ彛鏃訛紝鎮(zhèn)ㄤ笉鑳界洿鎺ュ垱寤烘墍闇綾葷殑瀵硅薄騫惰繍琛屽畠錛涘繀欏諱粠 Thread 綾葷殑涓涓疄渚嬪唴閮ㄨ繍琛屽畠銆傝澶氱▼搴忓憳鏇村枩嬈?/span> runnable 鎺ュ彛錛屽洜涓轟粠 Thread 綾葷戶鎵夸細(xì)寮哄姞綾誨眰嬈°?/span>

銆銆synchronized 鍏抽敭瀛?/span>

銆銆鍒扮洰鍓嶄負(fù)姝紝鎴戜滑鐪嬪埌鐨勭ず渚嬮兘鍙槸浠ラ潪甯哥畝鍗曠殑鏂瑰紡鏉ュ埄鐢ㄧ嚎紼嬨傚彧鏈夋渶灝忕殑鏁版嵁嫻侊紝鑰屼笖涓嶄細(xì)鍑虹幇涓や釜綰跨▼璁塊棶鍚屼竴涓璞$殑鎯呭喌銆備絾鏄紝鍦ㄥぇ澶氭暟鏈夌敤鐨勭▼搴忎腑錛岀嚎紼嬩箣闂撮氬父鏈変俊鎭祦銆傝瘯鑰冭檻涓涓噾铻嶅簲鐢ㄧ▼搴忥紝瀹冩湁涓涓?/span> Account 瀵硅薄錛屽涓嬩緥涓墍紺猴細(xì)

銆銆涓涓摱琛屼腑鐨勫欏規(guī)椿鍔?/span>

public class Account {
String holderName;
float amount;
public Account(String name, float amt) {
holderName = name;
amount = amt;
}

public void deposit(float amt) {
amount += amt;
}

public void withdraw(float amt) {
amount -= amt;
}

public float checkBalance() {
return amount;
}
}


銆銆鍦ㄦ浠g爜鏍蜂緥涓綔浼忕潃涓涓敊璇傚鏋滄綾葷敤浜庡崟綰跨▼搴旂敤紼嬪簭錛屼笉浼?xì)鏈変恢M綍闂銆備絾鏄紝鍦ㄥ綰跨▼搴旂敤紼嬪簭鐨勬儏鍐典腑錛屼笉鍚岀殑綰跨▼灝辨湁鍙兘鍚屾椂璁塊棶鍚屼竴涓?/span> Account 瀵硅薄錛屾瘮濡傝涓涓仈鍚堝笎鎴風(fēng)殑鎵鏈夎呭湪涓嶅悓鐨?/span> ATM 涓婂悓鏃惰繘琛岃闂傚湪榪欑鎯呭喌涓嬶紝瀛樺叆鍜屾敮鍑哄氨鍙兘浠ヨ繖鏍風(fēng)殑鏂瑰紡鍙戠敓錛氫竴涓簨鍔¤鍙︿竴涓簨鍔¤鐩栥傝繖縐嶆儏鍐靛皢鏄伨闅炬х殑銆備絾鏄紝Java 緙栫▼璇█鎻愪緵浜嗕竴縐嶇畝鍗曠殑鏈哄埗鏉ラ槻姝㈠彂鐢熻繖縐嶈鐩栥傛瘡涓璞″湪榪愯鏃墮兘鏈変竴涓叧鑱旂殑閿併傝繖涓攣鍙氳繃涓烘柟娉曟坊鍔犲叧閿瓧 synchronized 鏉ヨ幏寰椼傝繖鏍鳳紝淇榪囩殑 Account 瀵硅薄錛堝涓嬫墍紺猴級灝嗕笉浼?xì)閬彈鍍忔暟鎹崯鍧彉q欐牱鐨勯敊璇細(xì)

銆銆瀵逛竴涓摱琛屼腑鐨勫欏規(guī)椿鍔ㄨ繘琛屽悓姝ュ鐞?/span>

public class Account {
String holderName;
float amount;
public Account(String name, float amt) {
holderName = name;
amount = amt;
}

public synchronized void deposit(float amt) {
amount += amt;
}

public synchronized void withdraw(float amt) {
amount -= amt;
}

public float checkBalance() {
return amount;
}
}


銆銆deposit() 鍜?/span> withdraw() 鍑芥暟閮介渶瑕佽繖涓攣鏉ヨ繘琛屾搷浣滐紝鎵浠ュ綋涓涓嚱鏁拌繍琛屾椂錛屽彟涓涓嚱鏁板氨琚樆濉炪傝娉ㄦ剰錛?/span> checkBalance() 鏈綔鏇存敼錛屽畠涓ユ牸鏄竴涓鍑芥暟銆傚洜涓?/span> checkBalance() 鏈綔鍚屾澶勭悊錛屾墍浠ヤ換浣曞叾浠栨柟娉曢兘涓嶄細(xì)闃誨瀹冿紝瀹冧篃涓嶄細(xì)闃誨浠諱綍鍏朵粬鏂規(guī)硶錛屼笉綆¢偅浜涙柟娉曟槸鍚﹁繘琛屼簡鍚屾澶勭悊



luis 2010-01-26 01:17 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              欧美日韩国产三级| 欧美成人蜜桃| 午夜电影亚洲| 国产麻豆精品在线观看| 性色av一区二区怡红| 亚洲免费视频在线观看| 国产精品日韩在线一区| 欧美一区二区日韩一区二区| 亚洲中字黄色| 国产日韩综合一区二区性色av| 欧美一区二区三区四区在线| 欧美一区二区三区成人 | 欧美黑人国产人伦爽爽爽| 女主播福利一区| 99精品黄色片免费大全| 夜夜爽av福利精品导航| 国产精品毛片大码女人| 欧美中文在线免费| 久久精品国产免费观看| 在线观看三级视频欧美| 欧美激情第六页| 欧美日韩精品一区二区在线播放| 亚洲影视在线播放| 午夜精品福利在线观看| 黄色成人免费网站| 欧美激情一二三区| 欧美视频福利| 久久精品国产亚洲a| 老司机精品久久| 一区二区三区 在线观看视频| 亚洲一区www| 韩日成人av| 亚洲国产精品久久久久秋霞蜜臀| 欧美日本亚洲视频| 午夜久久99| 久久久99爱| 一区二区三区偷拍| 午夜一级久久| 亚洲日本理论电影| 亚洲一区二区精品视频| 激情另类综合| 亚洲精品欧美| 国产日韩一区二区三区| 亚洲国产mv| 国产精品欧美日韩| 欧美a一区二区| 欧美视频一区二区在线观看 | 久久噜噜噜精品国产亚洲综合| 亚洲精品国产精品乱码不99按摩| 亚洲午夜免费视频| 在线成人av| 亚洲午夜视频在线观看| …久久精品99久久香蕉国产| 日韩一级网站| 一区二区三区在线高清| 一本久久a久久免费精品不卡| 黄色成人在线网址| 99精品视频免费观看| 国产亚洲二区| 亚洲理论电影网| 韩国女主播一区二区三区| 亚洲精品一区二区在线| 国产一区日韩二区欧美三区| 亚洲精品视频一区| 狠狠色香婷婷久久亚洲精品| 亚洲免费av电影| 一区二区视频欧美| 亚洲一区在线播放| 日韩一二三在线视频播| 久久精品欧洲| 午夜国产一区| 欧美区国产区| 欧美77777| 国产亚洲成av人片在线观看桃 | 老色鬼精品视频在线观看播放| 亚洲欧美日韩国产| 欧美 日韩 国产一区二区在线视频 | 91久久夜色精品国产九色| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲人成久久| 亚洲电影有码| 欧美一区二区视频在线观看| 亚洲午夜久久久久久久久电影院 | 亚洲图色在线| 9色国产精品| 麻豆成人小视频| 久久久久国产精品人| 欧美性感一类影片在线播放| 欧美激情第9页| 黄色成人在线网址| 性久久久久久| 亚洲欧美国产日韩天堂区| 欧美日本精品一区二区三区| 欧美高清在线一区| 精品91免费| 香蕉国产精品偷在线观看不卡| 亚洲亚洲精品在线观看| 欧美极品在线观看| 亚洲高清在线视频| 亚洲国产高潮在线观看| 久久激情视频久久| 久久精品视频99| 国产日韩精品综合网站| 亚洲欧美日韩一区二区在线| 亚洲欧美国产高清| 国产精品成人免费精品自在线观看| 亚洲欧洲精品成人久久奇米网 | 国产精品视频精品视频| 一区二区三区不卡视频在线观看| 99天天综合性| 欧美精品色一区二区三区| 亚洲高清三级视频| 最新高清无码专区| 欧美成年人网| 亚洲黑丝一区二区| 亚洲美女色禁图| 欧美刺激午夜性久久久久久久| 欧美第十八页| 最新国产拍偷乱拍精品| 欧美成人一区二区在线| 欧美激情精品久久久久久黑人| 亚洲国产精品久久久久婷婷884| 久久综合激情| 欧美激情亚洲自拍| 亚洲伦伦在线| 欧美日韩一区二区精品| aa日韩免费精品视频一| 亚洲综合导航| 国产精品尤物| 久久国产视频网| 免费成年人欧美视频| 亚洲国产三级在线| 欧美大片国产精品| 亚洲裸体在线观看| 亚洲一区二区三区免费视频| 国产精品高潮呻吟| 香蕉乱码成人久久天堂爱免费| 久久久精品一区| 在线播放一区| 欧美精品福利视频| 在线视频精品一区| 欧美一二三区精品| 国内精品美女在线观看| 蜜桃久久精品乱码一区二区| 亚洲狠狠丁香婷婷综合久久久| 这里只有视频精品| 国产精品人成在线观看免费| 欧美在线二区| 欧美激情久久久| 亚洲性视频网址| 国产一区二区日韩| 毛片精品免费在线观看| 日韩一区二区福利| 久久精品一区二区| 亚洲激情电影在线| 欧美偷拍一区二区| 欧美在线播放一区| 亚洲高清资源| 午夜久久美女| 在线国产精品播放| 欧美日韩精品久久| 欧美一区二区三区在线观看视频 | 午夜精品福利视频| 农夫在线精品视频免费观看| 一本色道久久综合精品竹菊| 国产免费亚洲高清| 麻豆国产精品777777在线| 亚洲美女在线观看| 久久九九国产| 一本综合精品| 韩日欧美一区| 欧美久久久久中文字幕| 亚洲女人天堂av| 亚洲第一福利社区| 亚洲欧美国产三级| 在线精品观看| 欧美性大战xxxxx久久久| 久久久www成人免费毛片麻豆| 亚洲精品一区二区三区av| 久久久久久97三级| 夜夜嗨av一区二区三区免费区| 国产视频一区二区在线观看| 欧美成人高清| 欧美伊人久久大香线蕉综合69| 亚洲国产一二三| 久久久久久久一区二区| 一本色道久久综合狠狠躁篇怎么玩| 国产日韩一区二区三区| 欧美精品三区| 久久久精品五月天| 在线一区二区三区四区| 欧美国产精品日韩| 久久xxxx| 宅男噜噜噜66国产日韩在线观看| 伊人一区二区三区久久精品| 国产精品成人av性教育| 欧美成人蜜桃| 久久精品欧洲| 亚洲欧美卡通另类91av| 日韩一级精品视频在线观看|