锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成AⅤ人影院在线观看,亚洲精品视频免费观看,亚洲成a人一区二区三区http://www.tkk7.com/mirenxiaoxiao/archive/2011/01/18/343177.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Tue, 18 Jan 2011 14:26:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2011/01/18/343177.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/343177.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2011/01/18/343177.html#Feedback0http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/343177.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/343177.html        鍒氬java嫻佹妧鏈?/span>IO緙栫▼鏃訛紝涓涓嬪嚭鏉ヨ繖涔堝嫻侊紝寰堟槸涓嶆晱鎰燂紝涓嶆劅鍐掞紝鍦ㄥ涔犱簡榪欐鏃墮棿錛屽彂鐜板ソ澶氶」鐩腑鐨勮鍐欐暟鎹紝杈撳叆杈撳嚭鐢ㄥ埌鐨勯兘鏄互鍓嶅鐨勬渶鍩烘湰鐨勶紝浣嗘槸鑷繁鍗翠笉鏄緢鐞嗚В鍏舵牴鏈紝浠婂ぉ灝辮鍑犱釜嫻佷腑綆鍗曚絾鍙堝父鐢ㄧ殑鍑犱釜鐭ヨ瘑鐐?/span>

   Java.io鍖呬腑瀹氫箟浜嗗涓祦綾誨瀷錛屾潵瀹炵幇杈撳叆杈撳嚭鍔熻兘錛?/span>

    •  鎸夋暟鎹祦鐨勬柟鍚戜笉鍚屽彲浠ュ垎涓鴻緭鍏ユ祦鍜岃緭鍑烘祦銆?/span>(浠ョ▼搴忕殑瑙掑害鏉ヨ冭檻)
    • 濡傦細杈撳叆嫻?/span>InputStream Reader 杈撳嚭嫻?/span> OutputStream Writer
    •  鎸夊鐞嗘暟鎹崟浣嶄笉鍚屽彲浠ュ垎涓哄瓧鑺傛祦鍜屽瓧絎︽祦銆?/span>
    • 濡?/span>: 瀛楄妭嫻?/span> InputStream OutputStream 瀛楃嫻?/span> Reader Writer
    •  鎸夌収鍔熻兘涓嶅悓鍙互鍒嗕負鑺傜偣嫻佸拰澶勭悊嫻併?/span>

        閫氫織鐨勮鑺傜偣嫻佸氨鏄竴涓畝鍗曠殑杈撳叆杈撳嚭嫻侊紝鑰屽鐞嗘祦鏄?#8220;榪炴帴”鍦ㄥ凡瀛樺湪鐨勫瓧鑺傛祦鎴栧鐞嗘祦涔嬩笂鐨勶紝閫氳繃瀵規暟鎹殑澶勭悊涓虹▼搴忔彁渚涙洿涓哄己澶х殑璇誨啓鍔熻兘銆?/span>

 鎴戜滑鏈緇忓父鐢ㄥ埌鐨勮妭鐐規祦綾誨瀷鏄湁鍏蟲枃浠跺鐞嗙殑鏈?/span>FileReader FileWriter FileInputStream FileOutputStream

Ø          FileInputSteam 鍜?/span> FileOutputStream 綾繪敮鎸佸叾鐖剁被InputStream 鍜?/span>OutputStream 鎵鎻愪緵鐨勬暟鎹鍐欐柟娉曘?/span>

Ø       娉ㄦ剰錛?/span>

§         鍦ㄥ疄渚嬪寲FileInputStream鍜?/span>FileOutputSteam嫻佹椂瑕佺敤try錛?/span>catch璇彞浠ュ鐞嗗叾鍙兘鎶涘嚭鐨?/span>FileNotFoundException銆?/span>

§         鍦ㄨ鍐欐暟鎹椂涔熻鐢?/span>try錛?/span>catch璇彞浠ュ鐞嗗彲鑳芥姏鍑虹殑 IOException銆?/span>

§         FileNotFoundException鏄?/span>IOException鐨勫瓙綾?/span>

FileReader 鍜?/span> FileWriter 鍒嗗埆緇ф壙鑷?/span>Reader鍜?/span>Writer錛?/span>FileInputSteam涓?/span>FileOutputStream綾諱技錛屾墍涓嶅悓鐨勬椂FileReader鍜?/span>FileWriter鍚戞枃浠惰緭鍏ュ拰杈撳嚭鐨勬暟鎹崟浣嶄負瀛楃銆?/span>

     澶勭悊嫻佷腑甯哥敤鍒扮殑鏈夌紦鍐叉祦 銆佽漿鎹㈡祦銆?/span>

l          緙撳啿嫻佹湁BufferedReader BufferedWriter BufferedInputStream BufferedOutputStream ,緙撳啿嫻佽“濂楁帴”鍦ㄧ浉搴旂殑鑺傜偣嫻佷箣涓婏紝瀵硅鍐欑殑鏁版嵁鎻愪緵浜嗙紦鍐茬殑鍔熻兘錛屾彁楂樹簡璇誨啓鐨勬晥鐜囷紝鍚屾椂澧炲姞浜嗕竴浜涙柊鐨勬柟娉?/span>

l          BufferedReader鎻愪緵浜?/span>readLine鏂規硶鐢ㄤ簬璇誨彇涓琛屽瓧絎︿覆錛堜互"r鎴?/span>"n鍒?/span>           闅旓級銆?/span>

l          BufferedWriter鎻愪緵浜?/span>newLine鐢ㄤ簬鍐欏叆涓涓鍒嗛殧絎︺?/span>

l          瀵逛簬杈撳嚭鐨勭紦鍐叉祦錛屽啓鍑虹殑鏁版嵁浼氬厛鍦ㄥ唴瀛樹腑緙撳瓨錛屼嬌鐢?/span>flush鏂規硶灝嗕細浣垮唴瀛樹腑鐨勬暟鎹珛鍒誨啓鍑恒?/span>

鍦?/span>Socket緙栫▼涓帴鍙椾俊鎭椂錛屼笉鏄洿鎺ョ敤InputStream鎺ユ敹錛岃屾槸鎶婂唴瀹規斁鍏ョ紦鍐蹭箣涓繘琛岃鍙?/span> 錛屽湪Socket涓殑綆鍗曞簲鐢ㄥ涓?br />   

package com.dr.Echo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;

public class EchoServer {

    
/**
     * 
@param args
     * 
@throws IOException 
     
*/

    
public static void main(String[] args) throws IOException {
        
// TODO Auto-generated method stub
         ServerSocket server = null;
         PrintStream out 
= null;
         BufferedReader buf 
= null;
         server 
= new ServerSocket(9999);
         Socket client 
= null;
         
while(true){
             
//涓嶆柇鎺ユ敹鏁版嵁
             client = server.accept();
             
//鍑嗗濂藉儚瀹㈡埛绔緭鍑哄唴瀹?/span>
             out = new PrintStream(client.getOutputStream());
             
//鑰屼笖瀹㈡埛绔鏈夎緭鍏ョ粰鏈嶅姟鍣ㄧ
             buf = new BufferedReader(new InputStreamReader(client.getInputStream()));
             
//涓嬮潰鍏堢粰鍑轟竴涓畬鏁寸殑淇℃伅鎻愮ず
             out.println("鎮ㄥソ錛佹榪庡厜涓達細http://wwww.tstc.edu.cn");
             out.println(
"杈撳叆bye琛ㄧず閫鍑哄搱-");
             
while(true){
                 
//鎺ュ彈瀹㈡埛绔彂閫佽屾潵鐨勫唴瀹?/span>
                 String str = buf.readLine();
                 System.out.println(
"client's data is "+str);
                 
if(str == null){
                     
//濡傛灉str涓虹┖灝辮〃紺洪鍑?/span>
                     break;
                 }
else{
                     
//濡傛灉杈撳叆鐨勬槸bye鍒欒〃紺烘槸閫鍑虹郴緇?/span>
                     if("bye".equals(str)){
                         
break;
                     }

                     out.println(
"xiaoxiao:"+str);
                 }

             }

             out.close();
             buf.close();
             client.close();
         }

    }


}

 

package com.dr.Echo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class EchoClient {

    
/**
     * 
@param args
     * 
@throws IOException 
     * 
@throws UnknownHostException 
     
*/

    
public static void main(String[] args) throws UnknownHostException, IOException {
        
// TODO Auto-generated method stub
         Socket client = null;
         BufferedReader buf 
= null;
         PrintStream out 
= null;
         client 
= new Socket("127.0.0.1",9999);
         buf 
= new BufferedReader(new InputStreamReader(client.getInputStream()));
         System.out.println(buf.readLine());
         System.out.println(buf.readLine());
         BufferedReader in 
= new BufferedReader(new InputStreamReader(System.in));
         
         String userInput 
= null;
         out 
= new PrintStream(client.getOutputStream());
         
while((userInput = in.readLine())!=null){
             out.println(userInput);
             System.out.println(buf.readLine());
         }

         out.close();
         in.close();
         client.close();
         
         
    }


}

   

      杞崲嫻?/span>InputStreamReader OutputStreamWriter 鐢ㄤ簬瀛楄妭鏁版嵁鍒板瓧絎︽暟鎹箣闂寸殑杞崲銆傚叾涓?/span>InputStreamReader 闇瑕佸拰InputStream”濂楁帴錛?/span>OutputStreamWriter闇瑕佸拰OutputStream濂楁帴

      鏁版嵁嫻?/span>DataInputStream DataOutputStream 鎻愪緵浜嗗彲浠ュ瓨鍙栦笌鏈哄櫒鏃犲叧鐨?/span>java鍘熷鏁版嵁綾誨瀷

l              Print嫻侊細PrintWriter鍜?/span>PrintStream閮藉睘浜庤緭鍑烘祦錛屽垎鍒拡瀵逛笌瀛楃鍜屽瓧鑺傦紝PrintWriter鍜?/span>PrintStream鎻愪緵浜嗛噸杞界殑print錛?/span>Println鏂規硶鐢ㄤ簬澶氱鏁版嵁綾誨瀷鐨勮緭鍑恒?/span>PrintWriter鍜?/span>PrintStream鐨勮緭鍑烘搷浣滀笉浼氭姏鍑哄紓甯革紝鐢ㄦ埛閫氳繃媯嫻嬮敊璇姸鎬佽幏鍙栭敊璇俊鎭?/span>PrintWriter鍜?/span>PrintStream鏈夎嚜鍔?/span>flush鍔熻兘

l           

 榪欏嚑涓祦鐨勭被鍨嬮兘鏄湪浠ュ悗鐨勫涔犱腑緇忓父鐢ㄥ埌鐨勩傚氨涓嶄竴涓鍋氫緥瀛愬暒

 

         浠ュ悗鎵瀛﹀埌鐨勬墍鏈夋祦綾誨瀷閮芥槸緇ф壙 InputStream OutputStream Reader Writer 榪欏洓涓娊璞$殑嫻佺被鍨?/span>



]]>
java涓瀯閫犳柟娉曞拰鏂規硶鍏ㄩ潰瑙f瀽http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/12/337918.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Fri, 12 Nov 2010 08:43:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/12/337918.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/337918.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/12/337918.html#Feedback1http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/337918.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/337918.html闃呰鍏ㄦ枃

榪蜂漢絎戠瑧 2010-11-12 16:43 鍙戣〃璇勮
]]>
java涓秷璐硅呬笌鐢熶駭鑰呯殑闂瀹炰緥瑙f瀽http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/10/337765.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Wed, 10 Nov 2010 15:07:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/10/337765.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/337765.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/10/337765.html#Feedback1http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/337765.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/337765.html闃呰鍏ㄦ枃

榪蜂漢絎戠瑧 2010-11-10 23:07 鍙戣〃璇勮
]]>
java-鍖婚櫌鐥呬漢鎺掗槦鎸傚彿鍖葷敓鍙彿綆媧佸皬緋葷粺http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/02/336824.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Tue, 02 Nov 2010 08:51:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/02/336824.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/336824.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2010/11/02/336824.html#Feedback1http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/336824.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/336824.html闃呰鍏ㄦ枃

榪蜂漢絎戠瑧 2010-11-02 16:51 鍙戣〃璇勮
]]>
java閾惰鎺掗槦緋葷粺綆鍗曠▼搴?/title><link>http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/01/336630.html</link><dc:creator>榪蜂漢絎戠瑧</dc:creator><author>榪蜂漢絎戠瑧</author><pubDate>Mon, 01 Nov 2010 05:22:00 GMT</pubDate><guid>http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/01/336630.html</guid><wfw:comment>http://www.tkk7.com/mirenxiaoxiao/comments/336630.html</wfw:comment><comments>http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/01/336630.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/336630.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mirenxiaoxiao/services/trackbacks/336630.html</trackback:ping><description><![CDATA[     鎽樿: 1.褰撴垜浠幓閾惰鍔炵悊浠涔堜笟鍔$殑鏃跺欐諱細鍏堝湪涓涓被浼肩數鑴戠殑灝忕郴緇熶笂鍘諱竴涓彿錛岀劧鍚庣瓑鐫錛屽綋琚彨鍒版椂灝卞幓鐩稿簲鐨勭獥鍙e姙鐞嗕笟鍔★紝榪欑鎺掗槦鐨勫皬緋葷粺涓昏鐢ㄥ埌浜嗘帴鍙ueue錛屽洜涓哄畠絎﹀悎闃熷垪鐨勮姹傚厛榪涘厛鍑恒?2.榪樻湁灝辨槸鏈夌鐗規畩鎯呭喌灝辨槸錛岄摱琛岀殑閲戝崱鐢ㄦ埛錛屼粬浠殑鏉冮檺杈冮珮錛屾誨彲浠ュ湪鏅氱敤鎴風殑鍓嶉潰鍔炵悊涓氬姟 鐩稿簲浠g爜濡備笅錛?package com.dr.queue; public clas...  <a href='http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/01/336630.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/mirenxiaoxiao/aggbug/336630.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mirenxiaoxiao/" target="_blank">榪蜂漢絎戠瑧</a> 2010-11-01 13:22 <a href="http://www.tkk7.com/mirenxiaoxiao/archive/2010/11/01/336630.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java鎺у埗鍙拌緭鍑虹畝鍗曠櫥鍏ュ皬紼嬪簭http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/20/335701.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Wed, 20 Oct 2010 08:33:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2010/10/20/335701.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/335701.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2010/10/20/335701.html#Feedback0http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/335701.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/335701.htmlpackage com.dr.exercise6;

import java.util.Scanner;

public class Login {
    
public static void main(String[] args) {
        Scanner s 
= new Scanner(System.in);
        System.out.println(
"璇瘋緭鍏ョ敤鎴峰悕錛?/span>");
        String name 
= s.nextLine();
        System.out.println(
"璇瘋緭鍏ュ瘑鐮侊細");
        String password 
= s.nextLine();
        
if(name.equals("abc")&&password.equals("123")){
            System.out.println(
"嬈㈣繋鐧誨叆錛侊紒");
            
        }

        
else{
            System.out.println(
"鐢ㄦ埛鍚嶆垨瀵嗙爜涓嶆紜紒錛?/span>");
        }


    }


}

鐢ㄦ埛鍚嶅瘑鐮佽緭鍏ユ紜椂錛?img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/1234.jpg" width="683" height="156" />
鐢ㄦ埛鍚嶆垨瀵嗙爜杈撳叆涓嶆紜椂錛?img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/156.jpg" width="687" height="156" />

]]>
java涓璖tring s = new String("abc")鍒涘緩浜嗗嚑涓璞★紵錛?/title><link>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/18/335457.html</link><dc:creator>榪蜂漢絎戠瑧</dc:creator><author>榪蜂漢絎戠瑧</author><pubDate>Mon, 18 Oct 2010 06:32:00 GMT</pubDate><guid>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/18/335457.html</guid><wfw:comment>http://www.tkk7.com/mirenxiaoxiao/comments/335457.html</wfw:comment><comments>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/18/335457.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/335457.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mirenxiaoxiao/services/trackbacks/335457.html</trackback:ping><description><![CDATA[絳旀鏄袱涓紝鐜板湪鎴戜滑鍏蜂綋鐨勮涓涓嬶細<br /> String s = new String("abc");<br /> 棣栧厛鎴戜滑瑕佹槑鐧戒袱涓蹇碉紝寮曠敤鍙橀噺鍜屽璞★紝瀵硅薄涓鑸氳繃new鍦ㄥ爢涓垱寤猴紝s鍙槸涓涓紩鐢ㄥ彉閲忋?br /> 鎵鏈夌殑瀛楃涓查兘鏄疭tring瀵硅薄錛岀敱浜庡瓧絎︿覆鏂囧瓧鐨勫ぇ閲忎嬌鐢紝java涓負浜嗚妭鐪佹椂闂達紝鍦ㄧ紪璇戦樁孌碉紝浼氭妸瀛楃涓叉枃瀛楁斁鍦ㄦ枃瀛楁睜涓紝鏂囧瓧姹犵殑涓涓ソ澶勫氨鏄彲浠ユ妸鐩稿悓鐨勫瓧絎︿覆鍚堝茍錛屽崰鐢ㄤ竴涓┖闂達紝鎴戜滑鍙互鐢?=鍒ゆ柇涓涓嬩袱涓紩鐢ㄥ彉閲忔槸鍚︽寚鍚戜簡涓涓湴鍧鍗充竴涓璞?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 id="Codehighlighter1_20_255_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_255_Open_Text.style.display='none'; Codehighlighter1_20_255_Closed_Image.style.display='inline'; Codehighlighter1_20_255_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_20_255_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_255_Closed_Text.style.display='none'; Codehighlighter1_20_255_Open_Image.style.display='inline'; Codehighlighter1_20_255_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Demo02 </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_20_255_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_20_255_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_62_253_Open_Image" onclick="this.style.display='none'; Codehighlighter1_62_253_Open_Text.style.display='none'; Codehighlighter1_62_253_Closed_Image.style.display='inline'; Codehighlighter1_62_253_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_62_253_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_62_253_Closed_Text.style.display='none'; Codehighlighter1_62_253_Open_Image.style.display='inline'; Codehighlighter1_62_253_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_62_253_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_62_253_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> TODO Auto-generated method stub</span><span style="color: #008000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        String s1 </span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">abc</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        String s2 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">abc</span><span style="color: #000000">"</span><span style="color: #000000"> ;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">( s1 </span><span style="color: #000000">==</span><span style="color: #000000"> s2 ) System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">s1,s2 refer to the same object</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">else</span><span style="color: #000000"> System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">trouble</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> 杈撳嚭緇撴灉涓猴細<img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/12.jpg" width="672" height="124" /><br /> 鍙互鐪嬪嚭鎸囧悜浜嗕竴涓璞★紝鍗蟲枃瀛楁睜涓繚瀛樹簡涓涓璞°?br /> 浜屻丼tring s = new String("abc")瀹為檯涓婃槸"abc"鏈韓灝辨槸鏂囧瓧姹犱腑鐨勪竴涓璞★紝鍦ㄨ繍琛?new String()鏃訛紝鎶婃枃瀛楁睜鍗硃ool涓殑瀛楃涓?abc"澶嶅埗鍒板爢涓紝騫舵妸榪欎釜瀵硅薄鐨勫簲鐢ㄤ氦緇檚錛屾墍浠ュ垱寤轟簡涓や釜String瀵硅薄錛屼竴涓湪pool涓紝涓涓湪鍫嗕腑銆備笅闈㈢湅榪欎釜紼嬪簭錛屽垱寤轟簡鍑犱釜瀵硅薄銆?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 id="Codehighlighter1_20_296_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_296_Open_Text.style.display='none'; Codehighlighter1_20_296_Closed_Image.style.display='inline'; Codehighlighter1_20_296_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_20_296_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_296_Closed_Text.style.display='none'; Codehighlighter1_20_296_Open_Image.style.display='inline'; Codehighlighter1_20_296_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Demo03 </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_20_296_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_20_296_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_62_294_Open_Image" onclick="this.style.display='none'; Codehighlighter1_62_294_Open_Text.style.display='none'; Codehighlighter1_62_294_Closed_Image.style.display='inline'; Codehighlighter1_62_294_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_62_294_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_62_294_Closed_Text.style.display='none'; Codehighlighter1_62_294_Open_Image.style.display='inline'; Codehighlighter1_62_294_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_62_294_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_62_294_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> TODO Auto-generated method stub</span><span style="color: #008000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        String s1 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> String(</span><span style="color: #000000">"</span><span style="color: #000000">abc</span><span style="color: #000000">"</span><span style="color: #000000">) ;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        String s2 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> String(</span><span style="color: #000000">"</span><span style="color: #000000">abc</span><span style="color: #000000">"</span><span style="color: #000000">) ;<br /> <img id="Codehighlighter1_185_241_Open_Image" onclick="this.style.display='none'; Codehighlighter1_185_241_Open_Text.style.display='none'; Codehighlighter1_185_241_Closed_Image.style.display='inline'; Codehighlighter1_185_241_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_185_241_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_185_241_Closed_Text.style.display='none'; Codehighlighter1_185_241_Open_Image.style.display='inline'; Codehighlighter1_185_241_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">( s1 </span><span style="color: #000000">==</span><span style="color: #000000"> s2 )</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_185_241_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_185_241_Open_Text"><span style="color: #000000">{ </span><span style="color: #008000">//</span><span style="color: #008000">涓嶄細鎵ц鐨勮鍙</span><span style="color: #008000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">       System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鍦ㄥ爢涓垱寤轟簡涓涓璞?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_249_290_Open_Image" onclick="this.style.display='none'; Codehighlighter1_249_290_Open_Text.style.display='none'; Codehighlighter1_249_290_Closed_Image.style.display='inline'; Codehighlighter1_249_290_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_249_290_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_249_290_Closed_Text.style.display='none'; Codehighlighter1_249_290_Open_Image.style.display='inline'; Codehighlighter1_249_290_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />        </span><span style="color: #0000ff">else</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_249_290_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_249_290_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鍦ㄥ爢涓垱寤轟簡涓や釜瀵硅薄</span><span style="color: #000000">"</span><span style="color: #000000">);    <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> 杈撳嚭緇撴灉涓猴細<img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/13.jpg" width="609" height="125" /><br /> 鍙煡鍦ㄥ爢涓垱寤轟簡涓や釜瀵硅薄錛屼絾鏄湪鏂囧瓧姹犱腑鏈変竴涓璞★紝鎵浠ュ叡鍒涘緩浜嗕笁涓璞°?br /> 涓夈佸啀鐪嬩笅涓涓緥瀛愶細<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 id="Codehighlighter1_20_182_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_182_Open_Text.style.display='none'; Codehighlighter1_20_182_Closed_Image.style.display='inline'; Codehighlighter1_20_182_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_20_182_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_182_Closed_Text.style.display='none'; Codehighlighter1_20_182_Open_Image.style.display='inline'; Codehighlighter1_20_182_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Demo04 </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_20_182_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_20_182_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_62_179_Open_Image" onclick="this.style.display='none'; Codehighlighter1_62_179_Open_Text.style.display='none'; Codehighlighter1_62_179_Closed_Image.style.display='inline'; Codehighlighter1_62_179_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_62_179_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_62_179_Closed_Text.style.display='none'; Codehighlighter1_62_179_Open_Image.style.display='inline'; Codehighlighter1_62_179_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_62_179_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_62_179_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> TODO Auto-generated method stub</span><span style="color: #008000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        String s </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> String(</span><span style="color: #000000">"</span><span style="color: #000000">abc</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        s </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">cba</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(s); <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> 杈撳嚭緇撴灉涓猴細<img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/14.jpg" width="551" height="137" /><br /> String s = new String("abc")騫朵笉鏄粰s璧嬪鹼紝鑰屾槸鎶婂瓧絎︿覆"abc"鐨勫紩鐢ㄤ氦緇檚鎸佹湁錛岀幇鍦ㄦ妸s鎸囧悜瀛楃涓?cba"錛?cba"鐨勫紩鐢ㄥ湴鍧鎶?abc"鐨勫紩鐢ㄥ湴鍧瑕嗙洊錛屾墍浠ヨ緭鍑虹粨鏋滀負cba<br /> <br /> 鏈鍚庤繖涓緭鍑虹粨鏋滅殑瑙i噴錛屽笇鏈涘ぇ瀹舵寚鍑轟笉瓚籌紒錛?br /> <br /> <img src ="http://www.tkk7.com/mirenxiaoxiao/aggbug/335457.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mirenxiaoxiao/" target="_blank">榪蜂漢絎戠瑧</a> 2010-10-18 14:32 <a href="http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/18/335457.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏徃鍛樺伐淇℃伅杈撳嚭java灝忕▼搴?/title><link>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335275.html</link><dc:creator>榪蜂漢絎戠瑧</dc:creator><author>榪蜂漢絎戠瑧</author><pubDate>Fri, 15 Oct 2010 14:47:00 GMT</pubDate><guid>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335275.html</guid><wfw:comment>http://www.tkk7.com/mirenxiaoxiao/comments/335275.html</wfw:comment><comments>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335275.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/335275.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mirenxiaoxiao/services/trackbacks/335275.html</trackback:ping><description><![CDATA[瑕佹眰涓猴細鍐欎竴涓叕鍙稿憳宸ョ被錛?br />                 鏁版嵁鎴愬憳錛氬憳宸ュ彿錛屽鍚嶏紝钖按錛岄儴闂紱<br />                 鏂規硶錛?br />                 鍒╃敤鏋勯犳柟娉曞畬鎴愯緗俊鎭?<br />                  A.鍗曞弬錛屽彧浼犻掑憳宸ュ彿錛?br />                  B.鍙屽弬錛屽彧浼犻掑憳宸ュ彿銆佸鍚嶏紱<br />                  C.鍥涘弬錛屼紶閫掑憳宸ュ彿銆佸鍚嶃佽柂姘淬侀儴闂紱<br />                  D.鏃犲弬錛屽垯鍧囦負絀哄鹼紱<br /> main鏂規硶涓垱寤轟袱涓璞★紝鍒嗗埆榪涜楠岃瘉銆?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.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.dr.computer;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img id="Codehighlighter1_46_1357_Open_Image" onclick="this.style.display='none'; Codehighlighter1_46_1357_Open_Text.style.display='none'; Codehighlighter1_46_1357_Closed_Image.style.display='inline'; Codehighlighter1_46_1357_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_46_1357_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_46_1357_Closed_Text.style.display='none'; Codehighlighter1_46_1357_Open_Image.style.display='inline'; Codehighlighter1_46_1357_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Worker </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_1357_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_46_1357_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     </span><span style="color: #0000ff">private</span><span style="color: #000000"> String id;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     </span><span style="color: #0000ff">private</span><span style="color: #000000"> String name;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">float</span><span style="color: #000000"> salary;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     </span><span style="color: #0000ff">private</span><span style="color: #000000"> String department;<br /> <img id="Codehighlighter1_185_304_Open_Image" onclick="this.style.display='none'; Codehighlighter1_185_304_Open_Text.style.display='none'; Codehighlighter1_185_304_Closed_Image.style.display='inline'; Codehighlighter1_185_304_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_185_304_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_185_304_Closed_Text.style.display='none'; Codehighlighter1_185_304_Open_Image.style.display='inline'; Codehighlighter1_185_304_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />     </span><span style="color: #0000ff">public</span><span style="color: #000000"> Worker(String n)</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_185_304_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_185_304_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />       </span><span style="color: #0000ff">this</span><span style="color: #000000">.setId(n);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />       </span><span style="color: #0000ff">this</span><span style="color: #000000">.setName(</span><span style="color: #000000">"</span><span style="color: #000000">鏃犲悕姘?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />       </span><span style="color: #0000ff">this</span><span style="color: #000000">.setSalary(</span><span style="color: #000000">0.0f</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />       </span><span style="color: #0000ff">this</span><span style="color: #000000">.setDepartment(</span><span style="color: #000000">"</span><span style="color: #000000">鏈畾</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />     }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_344_456_Open_Image" onclick="this.style.display='none'; Codehighlighter1_344_456_Open_Text.style.display='none'; Codehighlighter1_344_456_Closed_Image.style.display='inline'; Codehighlighter1_344_456_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_344_456_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_344_456_Closed_Text.style.display='none'; Codehighlighter1_344_456_Open_Image.style.display='inline'; Codehighlighter1_344_456_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />     </span><span style="color: #0000ff">public</span><span style="color: #000000"> Worker(String n,String na)</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_344_456_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_344_456_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setId(n);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setName(na);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setSalary(</span><span style="color: #000000">1000</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setDepartment(</span><span style="color: #000000">"</span><span style="color: #000000">鍚庡嫟</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />     }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_517_626_Open_Image" onclick="this.style.display='none'; Codehighlighter1_517_626_Open_Text.style.display='none'; Codehighlighter1_517_626_Closed_Image.style.display='inline'; Codehighlighter1_517_626_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_517_626_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_517_626_Closed_Text.style.display='none'; Codehighlighter1_517_626_Open_Image.style.display='inline'; Codehighlighter1_517_626_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />     </span><span style="color: #0000ff">public</span><span style="color: #000000"> Worker (String n,String na,</span><span style="color: #0000ff">float</span><span style="color: #000000"> sa,String dep)</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_517_626_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_517_626_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setId(n);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setName(na);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setSalary(sa);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         </span><span style="color: #0000ff">this</span><span style="color: #000000">.setDepartment(dep);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />     }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_648_662_Open_Image" onclick="this.style.display='none'; Codehighlighter1_648_662_Open_Text.style.display='none'; Codehighlighter1_648_662_Closed_Image.style.display='inline'; Codehighlighter1_648_662_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_648_662_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_648_662_Closed_Text.style.display='none'; Codehighlighter1_648_662_Open_Image.style.display='inline'; Codehighlighter1_648_662_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />     </span><span style="color: #0000ff">public</span><span style="color: #000000"> Worker()</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_648_662_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_648_662_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />         <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />     }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_687_703_Open_Image" onclick="this.style.display='none'; Codehighlighter1_687_703_Open_Text.style.display='none'; Codehighlighter1_687_703_Closed_Image.style.display='inline'; Codehighlighter1_687_703_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_687_703_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_687_703_Closed_Text.style.display='none'; Codehighlighter1_687_703_Open_Image.style.display='inline'; Codehighlighter1_687_703_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String getId() </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_687_703_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_687_703_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> id;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_734_752_Open_Image" onclick="this.style.display='none'; Codehighlighter1_734_752_Open_Text.style.display='none'; Codehighlighter1_734_752_Closed_Image.style.display='inline'; Codehighlighter1_734_752_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_734_752_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_734_752_Closed_Text.style.display='none'; Codehighlighter1_734_752_Open_Image.style.display='inline'; Codehighlighter1_734_752_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> setId(String n) </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_734_752_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_734_752_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.id </span><span style="color: #000000">=</span><span style="color: #000000"> n;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_779_797_Open_Image" onclick="this.style.display='none'; Codehighlighter1_779_797_Open_Text.style.display='none'; Codehighlighter1_779_797_Closed_Image.style.display='inline'; Codehighlighter1_779_797_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_779_797_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_779_797_Closed_Text.style.display='none'; Codehighlighter1_779_797_Open_Image.style.display='inline'; Codehighlighter1_779_797_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String getName() </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_779_797_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_779_797_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> name;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_833_856_Open_Image" onclick="this.style.display='none'; Codehighlighter1_833_856_Open_Text.style.display='none'; Codehighlighter1_833_856_Closed_Image.style.display='inline'; Codehighlighter1_833_856_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_833_856_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_833_856_Closed_Text.style.display='none'; Codehighlighter1_833_856_Open_Image.style.display='inline'; Codehighlighter1_833_856_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> setName(String name) </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_833_856_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_833_856_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.name </span><span style="color: #000000">=</span><span style="color: #000000"> name;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_884_904_Open_Image" onclick="this.style.display='none'; Codehighlighter1_884_904_Open_Text.style.display='none'; Codehighlighter1_884_904_Closed_Image.style.display='inline'; Codehighlighter1_884_904_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_884_904_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_884_904_Closed_Text.style.display='none'; Codehighlighter1_884_904_Open_Image.style.display='inline'; Codehighlighter1_884_904_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">float</span><span style="color: #000000"> getSalary() </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_884_904_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_884_904_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> salary;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_938_978_Open_Image" onclick="this.style.display='none'; Codehighlighter1_938_978_Open_Text.style.display='none'; Codehighlighter1_938_978_Closed_Image.style.display='inline'; Codehighlighter1_938_978_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_938_978_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_938_978_Closed_Text.style.display='none'; Codehighlighter1_938_978_Open_Image.style.display='inline'; Codehighlighter1_938_978_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> setSalary(</span><span style="color: #0000ff">float</span><span style="color: #000000"> f) </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_938_978_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_938_978_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_952_975_Open_Image" onclick="this.style.display='none'; Codehighlighter1_952_975_Open_Text.style.display='none'; Codehighlighter1_952_975_Closed_Image.style.display='inline'; Codehighlighter1_952_975_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_952_975_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_952_975_Closed_Text.style.display='none'; Codehighlighter1_952_975_Open_Image.style.display='inline'; Codehighlighter1_952_975_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(f</span><span style="color: #000000">></span><span style="color: #000000">0.0f</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_952_975_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_952_975_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.salary </span><span style="color: #000000">=</span><span style="color: #000000"> f;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />        }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_1011_1035_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1011_1035_Open_Text.style.display='none'; Codehighlighter1_1011_1035_Closed_Image.style.display='inline'; Codehighlighter1_1011_1035_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_1011_1035_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1011_1035_Closed_Text.style.display='none'; Codehighlighter1_1011_1035_Open_Image.style.display='inline'; Codehighlighter1_1011_1035_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String getDepartment() </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_1011_1035_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1011_1035_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> department;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_1083_1118_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1083_1118_Open_Text.style.display='none'; Codehighlighter1_1083_1118_Closed_Image.style.display='inline'; Codehighlighter1_1083_1118_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_1083_1118_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1083_1118_Closed_Text.style.display='none'; Codehighlighter1_1083_1118_Open_Image.style.display='inline'; Codehighlighter1_1083_1118_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> setDepartment(String department) </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_1083_1118_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1083_1118_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.department </span><span style="color: #000000">=</span><span style="color: #000000"> department;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_1145_1355_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1145_1355_Open_Text.style.display='none'; Codehighlighter1_1145_1355_Closed_Image.style.display='inline'; Codehighlighter1_1145_1355_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_1145_1355_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1145_1355_Closed_Text.style.display='none'; Codehighlighter1_1145_1355_Open_Image.style.display='inline'; Codehighlighter1_1145_1355_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> showWorker()</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_1145_1355_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1145_1355_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鍛樺伐淇℃伅涓猴細</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">\t+--鎴戠殑Id鍙鳳細</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">id);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">\t+--鎴戠殑鍚嶅瓧錛?/span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">name);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">\t+--鎴戠殑宸ヨ祫錛?/span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">salary);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">\t+--鎴戠殑閮ㄩ棬錛?/span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">department);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div> <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.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.dr.computer;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img id="Codehighlighter1_50_249_Open_Image" onclick="this.style.display='none'; Codehighlighter1_50_249_Open_Text.style.display='none'; Codehighlighter1_50_249_Closed_Image.style.display='inline'; Codehighlighter1_50_249_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_50_249_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_50_249_Closed_Text.style.display='none'; Codehighlighter1_50_249_Open_Image.style.display='inline'; Codehighlighter1_50_249_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> WorkerTest </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_50_249_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_50_249_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /> <img id="Codehighlighter1_95_244_Open_Image" onclick="this.style.display='none'; Codehighlighter1_95_244_Open_Text.style.display='none'; Codehighlighter1_95_244_Closed_Image.style.display='inline'; Codehighlighter1_95_244_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_95_244_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_95_244_Closed_Text.style.display='none'; Codehighlighter1_95_244_Open_Image.style.display='inline'; Codehighlighter1_95_244_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_95_244_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_95_244_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Worker w1 </span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> Worker(</span><span style="color: #000000">"</span><span style="color: #000000">0001</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">娉夋按</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Worker w2 </span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> Worker(</span><span style="color: #000000">"</span><span style="color: #000000">0002</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">闃沖厜</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">1000.0f</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">鍏叧閮?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        w1.showWorker();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        w2.showWorker();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div> <br />   <p:colorscheme colors="#ffffff,#000000,#808080,#000000,#bbe0e3,#333399,#009999,#99cc00"></p:colorscheme>   <img src ="http://www.tkk7.com/mirenxiaoxiao/aggbug/335275.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mirenxiaoxiao/" target="_blank">榪蜂漢絎戠瑧</a> 2010-10-15 22:47 <a href="http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335275.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java涓被鍜屽璞$殑鍏崇郴http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335234.html榪蜂漢絎戠瑧榪蜂漢絎戠瑧Fri, 15 Oct 2010 07:13:00 GMThttp://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335234.htmlhttp://www.tkk7.com/mirenxiaoxiao/comments/335234.htmlhttp://www.tkk7.com/mirenxiaoxiao/archive/2010/10/15/335234.html#Feedback0http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/335234.htmlhttp://www.tkk7.com/mirenxiaoxiao/services/trackbacks/335234.html 

綾繪槸涓涓娊璞$殑姒傚康錛屽璞″垯鏄被鐨勫叿浣撳疄渚嬶紝鏄湡瀹炵殑涓綋錛屾瘮濡備漢灝辨槸涓涓被錛屽紶涓夈佹潕鍥涚瓑灝辨槸涓涓釜鐪熷疄鐨?/p>

鍏蜂綋鐨勪釜浣撳璞★紝浜烘湁鍏峰鎵鏈変漢綾婚氱敤鐨勭壒寰侊紝浣嗕笉鑳界‘瀹氭槸鍝釜浜猴紝寮犱笁銆佹潕鍥涚瓑鏈夊叿浣撶殑鐗瑰緛錛屾瘮濡傝韓楂樻у埆錛屽嵆

灞炴с傜被涓縐嶇湅涓嶈鎽鎬笉鐫鐨勪笢瑗匡紝瀵硅薄鏄?#8220;鏈夎鏈夎倝”鐨勫疄鐗┿?br />       鐜板疄鐢熸椿涓埌澶勭殕瀵硅薄錛屾瘮濡備竴杈嗘苯杞︼紝涓鏍嬫埧瀛愶紝涓鍙扮數鑴戯紝涓鍙尗銆?br />       闈㈠悜瀵硅薄鍏鋒湁灝佽銆佺戶鎵褲佸鎬佷笁澶х壒寰併傚皝瑁咃紝鍗充嬌灞炴х敤private淇グ瀵瑰閮ㄤ笉鍙錛涚戶鎵匡紝濡備漢錛屾湁鑰佷漢銆佸皬瀛?/p>

銆佺敺浜恒佸コ浜猴紝浠栦滑閮芥槸浜虹殑瀛愮被銆傚鎬佸寘鎷柟娉曠殑閲嶈澆鍜屽璞$殑澶氭佹э紝鏂規硶鐨勯噸杞藉氨鏄柟娉曞悕鐩稿悓錛屼絾鍙傛暟鍜岀被鍨嬩笉

鍚岀殑鏂規硶錛屽鎬侊紝鍗充漢鍒嗕負鑰佷漢錛屽皬瀛╋紝鐢蜂漢錛屽コ浜虹瓑銆?/p>

榪蜂漢絎戠瑧 2010-10-15 15:13 鍙戣〃璇勮
]]>
java鍫嗘爤瀛樺彇瀹炰緥灝忚瑙?/title><link>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/13/334980.html</link><dc:creator>榪蜂漢絎戠瑧</dc:creator><author>榪蜂漢絎戠瑧</author><pubDate>Wed, 13 Oct 2010 00:33:00 GMT</pubDate><guid>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/13/334980.html</guid><wfw:comment>http://www.tkk7.com/mirenxiaoxiao/comments/334980.html</wfw:comment><comments>http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/13/334980.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/mirenxiaoxiao/comments/commentRss/334980.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mirenxiaoxiao/services/trackbacks/334980.html</trackback:ping><description><![CDATA[          java閲囩敤鍫嗘爤褰㈠紡瀵規暟鎹繘琛屽瓨鍙栵紝榪欐牱鍋氱殑浼樼偣鏄瓨鍙栭熷害杈冨揩錛屽洜涓烘爤鐨勯熷害姣旇緝蹇紝浠呮浜庡瘎瀛樺櫒鐨勯熷害錛屽爢鏍堢殑妯″紡絎﹀悎鍨冨溇鍥炴敹鐨勬満鍒訛紝鏈夊埄浜庡瀮鍦劇殑鍥炴敹錛屽瀮鍦炬敹闆嗗櫒錛圙C錛夎嚜鍔ㄥ洖鏀躲?br />           鐜板湪鐢ㄤ竴涓皬瀹炰緥鏉ユ劅鍙椾竴涓媕ava鐨勫爢鏍堝瓨鍙栵紝浠g爜濡備笅錛?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 id="Codehighlighter1_20_335_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_335_Open_Text.style.display='none'; Codehighlighter1_20_335_Closed_Image.style.display='inline'; Codehighlighter1_20_335_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_20_335_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_335_Closed_Text.style.display='none'; Codehighlighter1_20_335_Open_Image.style.display='inline'; Codehighlighter1_20_335_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Person </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_20_335_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_20_335_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    String  name;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000">  age;<br /> <img id="Codehighlighter1_91_259_Open_Image" onclick="this.style.display='none'; Codehighlighter1_91_259_Open_Text.style.display='none'; Codehighlighter1_91_259_Closed_Image.style.display='inline'; Codehighlighter1_91_259_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_91_259_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_91_259_Closed_Text.style.display='none'; Codehighlighter1_91_259_Open_Image.style.display='inline'; Codehighlighter1_91_259_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_91_259_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_91_259_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Person p1 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Person();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Person p2 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2 </span><span style="color: #000000">=</span><span style="color: #000000"> p1;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.name </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">寮犱笁</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.age  </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">23</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.name </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">鏉庡洓</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.age </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">24</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.say();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.say();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_275_334_Open_Image" onclick="this.style.display='none'; Codehighlighter1_275_334_Open_Text.style.display='none'; Codehighlighter1_275_334_Closed_Image.style.display='inline'; Codehighlighter1_275_334_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_275_334_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_275_334_Closed_Text.style.display='none'; Codehighlighter1_275_334_Open_Image.style.display='inline'; Codehighlighter1_275_334_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">void</span><span style="color: #000000"> say()</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_275_334_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_275_334_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鎴戠殑鍚嶅瓧鏄細</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000"> name </span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">騫撮緞 錛?/span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">age);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span></div> </span>榪愯緇撴灉濡備笅錛氭垜鐨勫悕瀛楁槸錛氭潕鍥涘勾榫?錛?4<br />                             鎴戠殑鍚嶅瓧鏄細鏉庡洓騫撮緞 錛?4<br /> <br /> 鍙敤鐢誨浘鏉ヨ〃紺哄叾鍫嗘爤鐨勫瓨鍙栵細鍏朵腑鏉庡洓鎶婂紶涓夌粰瑕嗙洊鍟︺?br /> <img style="width: 683px; height: 384px" border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/c.JPG" width="683" height="384" /><br /> 淇敼浠g爜濡備笅錛? <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_20_345_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_345_Open_Text.style.display='none'; Codehighlighter1_20_345_Closed_Image.style.display='inline'; Codehighlighter1_20_345_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_20_345_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_345_Closed_Text.style.display='none'; Codehighlighter1_20_345_Open_Image.style.display='inline'; Codehighlighter1_20_345_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Person </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_20_345_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_20_345_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    String  name;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000">  age;<br /> <img id="Codehighlighter1_91_267_Open_Image" onclick="this.style.display='none'; Codehighlighter1_91_267_Open_Text.style.display='none'; Codehighlighter1_91_267_Closed_Image.style.display='inline'; Codehighlighter1_91_267_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_91_267_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_91_267_Closed_Text.style.display='none'; Codehighlighter1_91_267_Open_Image.style.display='inline'; Codehighlighter1_91_267_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </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_91_267_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_91_267_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Person p1 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Person();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Person p2 </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Person();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2 </span><span style="color: #000000">=</span><span style="color: #000000"> p1;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.name </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">寮犱笁</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.age  </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">23</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.name </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">鏉庡洓</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.age </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">24</span><span style="color: #000000">;<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p1.say();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        p2.say();<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_283_342_Open_Image" onclick="this.style.display='none'; Codehighlighter1_283_342_Open_Text.style.display='none'; Codehighlighter1_283_342_Closed_Image.style.display='inline'; Codehighlighter1_283_342_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_283_342_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_283_342_Closed_Text.style.display='none'; Codehighlighter1_283_342_Open_Image.style.display='inline'; Codehighlighter1_283_342_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">void</span><span style="color: #000000"> say()</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_283_342_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_283_342_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鎴戠殑鍚嶅瓧鏄細</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000"> name </span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">騫撮緞 錛?/span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">age);<br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> 榪愯緇撴灉涔熸槸錛氭垜鐨勫悕瀛楁槸錛氭潕鍥涘勾榫?錛?4<br />                             鎴戠殑鍚嶅瓧鏄細鏉庡洓騫撮緞 錛?4<br /> 鍏跺爢鏍堝瓨鍙栫敤鐢誨浘琛ㄧず濡備笅錛氬叾涓潕鍥涙妸寮犱笁緇欒鐩栧暒<br /> <img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/mirenxiaoxiao/b.JPG" width="683" height="384" /><br /> p2鍏堟柇寮鑷繁鍘熷厛鐨勫爢鎸囧悜錛屽啀鎸囧悜p1鐨勬寚鍚戯紝鍘熷厛鐨勫爢絀洪棿琚噴鏀俱?br /> <br /> <img src ="http://www.tkk7.com/mirenxiaoxiao/aggbug/334980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mirenxiaoxiao/" target="_blank">榪蜂漢絎戠瑧</a> 2010-10-13 08:33 <a href="http://www.tkk7.com/mirenxiaoxiao/archive/2010/10/13/334980.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://4794d.com" target="_blank">久久精品亚洲中文字幕无码麻豆</a>| <a href="http://my77789.com" target="_blank">老司机精品免费视频</a>| <a href="http://zzanfang.com" target="_blank">亚洲AV无码专区在线播放中文</a>| <a href="http://wwwly6080.com" target="_blank">午夜dj在线观看免费视频</a>| <a href="http://dslygc.com" target="_blank">久久国产精品免费观看</a>| <a href="http://boyonet.com" target="_blank">男女污污污超污视频免费在线看</a>| <a href="http://yuntao360.com" target="_blank">国产精品高清视亚洲精品</a>| <a href="http://szmazida.com" target="_blank">久久久久亚洲av无码专区导航</a>| <a href="http://pohezi.com" target="_blank">日韩精品亚洲aⅴ在线影院</a>| <a href="http://lai228.com" target="_blank">四虎免费永久在线播放</a>| <a href="http://121fj.com" target="_blank">无码一区二区三区AV免费</a>| <a href="http://saohuo7.com" target="_blank">无码日韩精品一区二区三区免费 </a>| <a href="http://zgj688.com" target="_blank">99re免费在线视频</a>| <a href="http://nzzys.com" target="_blank">久久久久久久久久免免费精品</a>| <a href="http://9981tv.com" target="_blank">国产区图片区小说区亚洲区</a>| <a href="http://kk600700.com" target="_blank">亚洲一卡2卡3卡4卡乱码 在线</a>| <a href="http://directzx.com" target="_blank">老司机亚洲精品影院</a>| <a href="http://8hnbuk14.com" target="_blank">亚洲第一AV网站</a>| <a href="http://www09191z.com" target="_blank">精品国产日韩亚洲一区</a>| <a href="http://www-3499.com" target="_blank">亚洲va中文字幕无码</a>| <a href="http://k4h3.com" target="_blank">国产片免费在线观看</a>| <a href="http://hqwgg.com" target="_blank">暖暖日本免费在线视频</a>| <a href="http://jdvgo.com" target="_blank">97无码免费人妻超级碰碰碰碰</a>| <a href="http://mp4888.com" target="_blank">69堂人成无码免费视频果冻传媒</a>| <a href="http://zdmaid.com" target="_blank">99久热只有精品视频免费看</a>| <a href="http://941sese.com" target="_blank">久草视频在线免费看</a>| <a href="http://gwcyy.com" target="_blank">麻豆精品成人免费国产片</a>| <a href="http://xvwenyue.com" target="_blank">好紧我太爽了视频免费国产</a>| <a href="http://445848.com" target="_blank">不卡视频免费在线观看</a>| <a href="http://qulu999.com" target="_blank">久久免费观看视频</a>| <a href="http://shulan88.com" target="_blank">久久www免费人成精品香蕉</a>| <a href="http://dfcnpc.com" target="_blank">一个人看的www在线免费视频</a>| <a href="http://fcw70.com" target="_blank">一级**爱片免费视频</a>| <a href="http://lyjhjx.com" target="_blank">国产V片在线播放免费无码</a>| <a href="http://asdfghjklzxcv.com" target="_blank">www免费黄色网</a>| <a href="http://bet06966.com" target="_blank">二个人看的www免费视频</a>| <a href="http://nkldj.com" target="_blank">中文字幕免费在线看电影大全 </a>| <a href="http://dzyong.com" target="_blank">久久亚洲2019中文字幕</a>| <a href="http://liuxilife.com" target="_blank">亚洲中文字幕无码中文字在线</a>| <a href="http://zz1220.com" target="_blank">亚洲精品午夜无码专区</a>| <a href="http://amjt9.com" target="_blank">亚洲卡一卡2卡三卡4卡无卡三</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>