锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲激情在线视频,亚洲国产精品成人AV在线,亚洲人成影院午夜网站http://www.tkk7.com/yuanhuaming/category/2608.html鏃犺鏄壒璇勭殑錛岃禐鎵殑錛屾寚鐫鐨勯兘璇稥MAIL緇欐垜錛屼綘鐨勫緩璁皢鏄垜鍓嶈繘鐨勫姩鍔? <A href=mailto:yuanhuaming@56.com >鑱旂郴鎴?lt;/A>zh-cnFri, 02 Mar 2007 03:32:37 GMTFri, 02 Mar 2007 03:32:37 GMT60Log4j鑷繁閰?/title><link>http://www.tkk7.com/yuanhuaming/archive/2006/04/12/40570.html</link><dc:creator>鐤祦鎴愭?/dc:creator><author>鐤祦鎴愭?/author><pubDate>Wed, 12 Apr 2006 02:30:00 GMT</pubDate><guid>http://www.tkk7.com/yuanhuaming/archive/2006/04/12/40570.html</guid><wfw:comment>http://www.tkk7.com/yuanhuaming/comments/40570.html</wfw:comment><comments>http://www.tkk7.com/yuanhuaming/archive/2006/04/12/40570.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yuanhuaming/comments/commentRss/40570.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yuanhuaming/services/trackbacks/40570.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Log4j</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">涓昏鐢變笁澶ч儴鍒嗭細</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 21.25pt; TEXT-INDENT: -21.25pt; mso-list: l0 level1 lfo1; tab-stops: list 21.25pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">1<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鍏叡綾?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Logger : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">璐熻矗澶勭悊鏃ュ織璁板綍鐨勫ぇ閮ㄥ垎鎿嶄綔銆?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <span style="mso-spacerun: yes">聽 </span> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 21.25pt; TEXT-INDENT: -21.25pt; mso-list: l0 level1 lfo1; tab-stops: list 21.25pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">2<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鍏叡鎺ュ彛</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Appender : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">璐熻矗鎺у埗鏃ュ織璁板綍鐨勮緭鍑洪儴鍒嗐傚畠鎻愪緵浜嗗縐嶈緭鍑虹洰鏍囥?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">2.1.1<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">FileAppender<span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鍒版枃鏈?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">2.1.2<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">ConsoleAppender<span style="mso-spacerun: yes">聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鍒版帶鍒跺彴</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: #333333; FONT-FAMILY: 'MS UI Gothic'; mso-fareast-language: ZH-CN; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Tahoma">2.1.3<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽 </span></span> <span lang="EN-US" style="COLOR: #333333; FONT-FAMILY: 'MS UI Gothic'; mso-fareast-language: ZH-CN; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Tahoma">SMTPAppender<span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: #333333; FONT-FAMILY: 'MS UI Gothic'; mso-fareast-language: ZH-CN; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Tahoma">杈撳嚭鍒伴偖浠?/span> <span lang="EN-US" style="COLOR: #333333; FONT-FAMILY: 'MS UI Gothic'; mso-fareast-language: ZH-CN; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Tahoma"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">2.1.4<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">JDBCAppender<span style="mso-spacerun: yes">聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鍒版暟鎹簱</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 21.25pt; TEXT-INDENT: -21.25pt; mso-list: l0 level1 lfo1; tab-stops: list 21.25pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽聽 </span></span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">甯冨眬</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Layout : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">璐熻矗鏍煎紡鍖?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Appender</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭銆傛湁涓夌甯冨眬妯″紡錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 49.6pt; TEXT-INDENT: -10mm; mso-list: l0 level2 lfo1; tab-stops: list 49.6pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.1<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">SimpleLayout : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">綆鍗曟牸寮?/span> <span style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt">銆?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">DEBUG - Here is some DEBUG</span> <span style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt">銆?/span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鐨勬棩蹇楄緭鍑恒?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 49.6pt; TEXT-INDENT: -10mm; mso-list: l0 level2 lfo1; tab-stops: list 49.6pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.2<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">HTMLLayout : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">浠?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">HTML</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">琛ㄦ牸杈撳嚭銆?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 49.6pt; TEXT-INDENT: -10mm; mso-list: l0 level2 lfo1; tab-stops: list 49.6pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3<span style="FONT: 7pt 'Times New Roman'">聽聽聽聽聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">PatternLayout : </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鑷畾涔夋牸寮忓寲鐨勬棩蹇楄緭鍑恒傛墦鍗板弬鏁板涓嬶細</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.1<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%m </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭浠g爜涓寚瀹氱殑娑堟伅 </span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.2<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%p </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭浼樺厛綰э紝鍗?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">DEBUG</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">INFO</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">WARN</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">ERROR</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">FATAL <o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.3<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%r </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鑷簲鐢ㄥ惎鍔ㄥ埌杈撳嚭璇?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">log</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">淇℃伅鑰楄垂鐨勬縐掓暟 </span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.4<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%c </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鎵灞炵殑綾葷洰錛岄氬父灝辨槸鎵鍦ㄧ被鐨勫叏鍚?</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.5<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%t </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭浜х敓璇ユ棩蹇椾簨浠剁殑綰跨▼鍚?</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.6<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%n </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭涓涓洖杞︽崲琛岀錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Windows</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">騫沖彴涓衡?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">\r\n鈥?/span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">Unix</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">騫沖彴涓衡?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">\n鈥?o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 70.9pt; TEXT-INDENT: -10mm; mso-list: l0 level3 lfo1; tab-stops: list 70.9pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">3.3.7<span style="FONT: 7pt 'Times New Roman'">聽 </span></span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%d </span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">杈撳嚭鏃ュ織鏃墮棿鐐圭殑鏃ユ湡鎴栨椂闂達紝榛樿鏍煎紡涓?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">ISO8601</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛屼篃鍙互鍦ㄥ叾鍚庢寚瀹氭牸寮忥紝姣斿錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">%d{yyy MMM dd HH:mm:ss,SSS}</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛岃緭鍑虹被浼鹼細</span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">2002</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">騫?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">10</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鏈?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">18</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">鏃?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">22</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">10</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">28</span> <span lang="ZH-CN" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">錛?/span> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">921<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt"> <span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN">聽<o:p></o:p></span> </p> <p> <span lang="EN-US" style="FONT-SIZE: 10.5pt; COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA">log4j.properties</span> <span lang="ZH-CN" style="FONT-SIZE: 10.5pt; COLOR: black; FONT-FAMILY: 'MS UI Gothic'; LETTER-SPACING: 0.4pt; mso-fareast-language: ZH-CN; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA">鐨勯厤緗涓嬶細</span> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #000000">####聽debug鏄緭鍑虹駭鍒紝鍒嗗埆鏄痙ebug<info<warn<error<fatal<br />####聽R鏄緭鍑哄埌l(fā)og</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">cmd鏄緭鍑哄埌鎺у埗鍙?/span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">htm杈撳嚭鍒癏TML<br />log4j.rootCategory</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">debug</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">聽R</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">聽cmd</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">聽htm<br /><br />##鎺у埗鍙拌緭鍑?br />log4j.appender.cmd</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.ConsoleAppender<br />#甯冨眬鏍煎紡<br />log4j.appender.cmd.layout</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.PatternLayout<br />log4j.appender.cmd.layout.ConversionPattern</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽%-2r聽</span> <span style="FONT-WEIGHT: bold; COLOR: #800000">[</span> <span style="COLOR: #800000">%t</span> <span style="FONT-WEIGHT: bold; COLOR: #800000">]</span> <span style="COLOR: #000000">聽%-6p聽%c聽-聽%m%n<br /><br />##鎺у埗鍙拌緭鍑?br />log4j.appender.htm</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.FileAppender<br />log4j.appender.htm.File</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">example.html<br />log4j.appender.htm.layout</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.HTMLLayout<br /><br />##log鏍煎紡杈撳嚭<br />#log4j.appender.R</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.FileAppender<br />#log4j.appender.R</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.R</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.RollingFileAppender<br />log4j.appender.R.File</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">test.log<br />#鏈澶ф棩蹇楀ぇ灝?br />log4j.appender.R.MaxFileSize</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">100KB聽聽聽<br />#鏈澶у浠芥暟<br />log4j.appender.R.MaxBackupIndex</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">聽聽聽聽<br />log4j.appender.R.layout</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">org.apache.log4j.SimpleLayout<br /></span> </div> <p>浠g爜濡備笅錛?br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">package</span> <span style="COLOR: #000000">聽com.hmy.Log4JTest;<br /><br /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽java.io.File;<br /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.log4j.Logger;<br /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.log4j.PropertyConfigurator;<br /><br /></span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽Log4jTest聽{<br />聽聽聽聽<br />聽聽聽聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽{<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽鑷姩蹇熷湴浣跨敤緙虹渷Log4j鐜銆?br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽BasicConfigurator.configure();<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽璇誨彇浣跨敤Java鐨勭壒鎬ф枃浠剁紪鍐欑殑閰嶇疆鏂囦歡銆?br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽PropertyConfigurator.configure聽("/WEB-INF/log4j.properties");<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽璇誨彇XML褰㈠紡鐨勯厤緗枃浠躲?br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽DOMConfigurator.configure聽("/WEB-INF/log4j.xml");</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽String聽file聽</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">E:/project聽by聽eclipse/test/com/hmy/Log4JTest/log4j.properties</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(file聽</span> <span style="COLOR: #000000">!=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽PropertyConfigurator.configure(file);<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br />聽聽聽聽<br />聽聽聽聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽Logger聽logger聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽Logger.getLogger(Log4jTest.</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">);<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[]聽aaa)聽{<br />聽聽聽聽聽聽聽聽聽聽logger.debug(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Here聽is聽some聽DEBUG</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽logger.info(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Here聽is聽some聽INFO</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽logger.warn(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Here聽is聽some聽WARN</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽logger.error(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Here聽is聽some聽ERROR</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽logger.fatal(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Here聽is聽some聽FATAL</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽}<br />}<br /></span> </div> <p>涓嬮潰鏄綉涓婃壘鐨勪竴涓厤緗枃浠?鎷╁叾涓浜屼嬌鐢ㄥ氨澶熺敤浜嗐?br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #000000"> <p> <span>log4j.rootLogger=DEBUG,CONSOLE,A1,im <br />log4j.addivity.org.apache=true </span> </p> <p> <span> </span>聽</p> <p> <span> <font color="#0000ff">#聽搴旂敤浜庢帶鍒跺彴</font> <br /> <br />log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender <br />log4j.appender.Threshold=DEBUG <br />log4j.appender.CONSOLE.Target=System.out <br />log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout <br />log4j.appender.CONSOLE.layout.ConversionPattern=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n <br />#log4j.appender.CONSOLE.layout.ConversionPattern=[start]%d{DATE}[DATE]%n%p[PRIORITY]%n%x[NDC]%n%t[THREAD]聽n%c[CATEGORY]%n%m[MESSAGE]%n%n <br /><br /><br /><font color="#0000ff">#搴旂敤浜庢枃浠?/font><br /><br />log4j.appender.FILE=org.apache.log4j.FileAppender <br />log4j.appender.FILE.File=file.log <br />log4j.appender.FILE.Append=false <br />log4j.appender.FILE.layout=org.apache.log4j.PatternLayout <br />log4j.appender.FILE.layout.ConversionPattern=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n <br />#聽Use聽this聽layout聽for聽LogFactor聽5聽analysis <br /><br /><br /><br /><font color="#0000ff">#聽搴旂敤浜庢枃浠跺洖婊?/font><br /><br />log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppender <br />log4j.appender.ROLLING_FILE.Threshold=ERROR <br />log4j.appender.ROLLING_FILE.File=rolling.log <br />log4j.appender.ROLLING_FILE.Append=true <br />log4j.appender.ROLLING_FILE.MaxFileSize=10KB <br />log4j.appender.ROLLING_FILE.MaxBackupIndex=1 <br />log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayout <br />log4j.appender.ROLLING_FILE.layout.ConversionPattern=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n <br /><br /><br /><font color="#0000ff">#搴旂敤浜巗ocket</font><br />log4j.appender.SOCKET=org.apache.log4j.RollingFileAppender <br />log4j.appender.SOCKET.RemoteHost=localhost <br />log4j.appender.SOCKET.Port=5001 <br />log4j.appender.SOCKET.LocationInfo=true <br /><font color="#0000ff">#聽Set聽up聽for聽Log聽Facter聽5</font><br />log4j.appender.SOCKET.layout=org.apache.log4j.PatternLayout <br />log4j.appender.SOCET.layout.ConversionPattern=[start]%d{DATE}[DATE]%n%p[PRIORITY]%n%x[NDC]%n%t[THREAD]%n%c[CATEGORY]%n%m[MESSAGE]%n%n <br /><br /><br />#聽Log聽Factor聽5聽Appender <br />log4j.appender.LF5_APPENDER=org.apache.log4j.lf5.LF5Appender <br />log4j.appender.LF5_APPENDER.MaxNumberOfRecords=2000 <br /><br /><br /><br /><font color="#0000ff">#聽鍙戦佹棩蹇楃粰閭歡</font><br /><br />log4j.appender.MAIL=org.apache.log4j.net.SMTPAppender <br />log4j.appender.MAIL.Threshold=FATAL <br />log4j.appender.MAIL.BufferSize=10 <br />log4j.appender.MAIL.From=web@www.wuset.com <br />log4j.appender.MAIL.SMTPHost=www.wusetu.com <br />log4j.appender.MAIL.Subject=Log4J聽Message <br />log4j.appender.MAIL.To=web@www.wusetu.com <br />log4j.appender.MAIL.layout=org.apache.log4j.PatternLayout <br />log4j.appender.MAIL.layout.ConversionPattern=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n <br /><br /><br /><br /><font color="#0000ff">#聽鐢ㄤ簬鏁版嵁搴?/font><br />log4j.appender.DATABASE=org.apache.log4j.jdbc.JDBCAppender <br />log4j.appender.DATABASE.URL=jdbc:mysql://localhost:3306/test <br />log4j.appender.DATABASE.driver=com.mysql.jdbc.Driver <br />log4j.appender.DATABASE.user=root <br />log4j.appender.DATABASE.password= <br />log4j.appender.DATABASE.sql=INSERT聽INTO聽LOG4J聽(Message)聽VALUES聽('[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n') <br />log4j.appender.DATABASE.layout=org.apache.log4j.PatternLayout <br />log4j.appender.DATABASE.layout.ConversionPattern=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n <br /><br /><br />log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender <br />log4j.appender.A1.File=SampleMessages.log4j <br />log4j.appender.A1.DatePattern=yyyyMMdd-HH'.log4j' <br />log4j.appender.A1.layout=org.apache.log4j.xml.XMLLayout <br /><br /><font color="#0000ff">#鑷畾涔堿ppender <br /></font><br />log4j.appender.im聽=聽net.cybercorlin.util.logger.appender.IMAppender <br /><br />log4j.appender.im.host聽=聽mail.cybercorlin.net <br />log4j.appender.im.username聽=聽username <br />log4j.appender.im.password聽=聽password <br />log4j.appender.im.recipient聽=聽corlin@cybercorlin.net <br /><br />log4j.appender.im.layout=org.apache.log4j.PatternLayout <br />log4j.appender.im.layout.ConversionPattern聽=[framework]聽%d聽-聽%c聽-%-4r聽[%t]聽%-5p聽%c聽%x聽-聽%m%n </span> <span> </span> </p> </span> </div> <p>聽</p> <p>聽</p> <img src ="http://www.tkk7.com/yuanhuaming/aggbug/40570.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yuanhuaming/" target="_blank">鐤祦鎴愭?/a> 2006-04-12 10:30 <a href="http://www.tkk7.com/yuanhuaming/archive/2006/04/12/40570.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SCJP嫻嬭瘯棰?/title><link>http://www.tkk7.com/yuanhuaming/archive/2005/12/30/26085.html</link><dc:creator>鐤祦鎴愭?/dc:creator><author>鐤祦鎴愭?/author><pubDate>Fri, 30 Dec 2005 08:49:00 GMT</pubDate><guid>http://www.tkk7.com/yuanhuaming/archive/2005/12/30/26085.html</guid><wfw:comment>http://www.tkk7.com/yuanhuaming/comments/26085.html</wfw:comment><comments>http://www.tkk7.com/yuanhuaming/archive/2005/12/30/26085.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yuanhuaming/comments/commentRss/26085.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yuanhuaming/services/trackbacks/26085.html</trackback:ping><description><![CDATA[<P>1銆傜紪璇戝拰榪愯涓嬮潰榪欐浠g爜鐨勭粨鏋滄槸浠涔堬紵 </P><PRE><CODE style="FONT-SIZE: 12px; FONT-FAMILY: Courier New, Courier, monospace"> Integer i= new Integer("10"); if (i.toString() == i.toString()) System.out.println("Equal"); else System.out.println("Not Equal"); </CODE> </PRE> <P><B>閫夐」錛?</B></P> <UL> <LI>A. 緙栬瘧閿欒 <LI>B. 杈撳嚭鈥淓qual鈥? <LI>C. 杈撳嚭鈥淣ot Equal鈥? <LI>D. 浠ヤ笂閮戒笉鏄?</LI></UL> <P><B>姝g‘絳旀錛?</B></P> <UL> <LI>C </LI></UL> <P><B>璇存槑錛?</B></P> <P><CODE><FONT face=Courier size=1>toString()</FONT></CODE> 鏂規(guī)硶榪斿洖絳夊悓浜庤繖涓?<CODE><FONT face=Courier size=1>String</FONT></CODE> 瀵硅薄鐨?<CODE><FONT face=Courier size=1>String</FONT></CODE> 銆傚畠姣忔璋冪敤鏃跺垱寤轟竴涓柊鐨勫璞°?<CODE><FONT face=Courier size=1>==</FONT></CODE> 鎿嶄綔絎︽瘮杈冧袱涓璞″紩鐢ㄧ殑浣嶆ā寮忚屼笉鏄疄闄呯殑 <CODE><FONT face=Courier size=1>String</FONT></CODE> 鍐呭銆傚洜姝ゆ瘮杈冭繑鍥?<CODE><FONT face=Courier size=1>false</FONT></CODE>錛屾墽琛?<CODE><FONT face=Courier size=1>else</FONT></CODE> 璇彞錛岃緭鍑衡淣ot Equal鈥濄? <HR> <P></P> <P>2銆傚湪涓嬮潰浠g爜涓紝鈥渋nsert code here鈥濅綅緗彲浠ュ悎娉曞湴鎻掑叆鍝釜閫夐」錛?nbsp;<CODE style="FONT-SIZE: 12px; FONT-FAMILY: Courier New, Courier, monospace"><BR>  class Parent<BR>  { <BR>    public void print(int i) <BR>    { <BR>    }<BR>  } <BR>  public class Child extends Parent<BR>  {<BR>    public static void main(String argv[]) <BR>    {<BR>    } <BR>    // insert code here<BR>  }</CODE><BR></P> <P><B>閫夐」錛?</B></P> <UL> <LI>A. public void print(int i, byte b) throws Exception {} <LI>B. public void print(int i, long i) throws Exception {} <LI>C. public void print(long i) {} <LI>D. public void print(int i) throws Exception {} <LI>E. public int print(int i) </LI></UL> <P><B>姝g‘絳旀錛?</B></P> <UL> <LI>A錛孊 鍜?C </LI></UL> <P><B>璇存槑錛?</B></P> <P>閫夐」 D 涓嶈兘緙栬瘧錛屽洜涓哄畠璇曞浘鎶涘嚭涓涓湪 <CODE><FONT face=Courier size=1>Parent</FONT></CODE> 綾諱腑娌℃湁澹版槑鐨?checked 寮傚父銆傞夐」 E 灝嗕笉鑳界紪璇戯紝鍥犱負鍙湁榪斿洖綾誨瀷涓嶇浉鍚岋紝鑰屽弬鏁板垪琛ㄥ拰鏂規(guī)硶鍚嶆槸鐩稿悓鐨勩傝繖瀵逛簬瑕嗙洊鍜岄噸杞介兘鏄笉鍏佽鐨勩傞夐」 A銆丅 鍜?C 鏈変笉鍚岀殑鍙傛暟琛紝鎵浠ュ畠浠〃紺?<I>閲嶈澆 </I>鑰屼笉鏄?<I>瑕嗙洊 </I>銆傚洜涓哄畠浠彲浠ユ姏鍑轟換浣曞紓甯革紝鎵浠ュ畠浠槸鍚堟硶鐨勩? <HR> <P></P>3銆傜紪璇戝拰榪愯浠ヤ笅紼嬪簭浼氭湁浠涔堢粨鏋滐紵 <CODE style="FONT-SIZE: 12px; FONT-FAMILY: Courier New, Courier, monospace"><BR>  class Test <BR>  {<BR>    public static void main(String args[]) <BR>    {<BR>      String s1 = "abc";<BR>      String s2 = "abc";<BR>      s1 += "xyz";<BR>      s2.concat("pqr");<BR>      s1.toUpperCase();<BR>      System.out.println(s1 + s2);<BR>    }<BR>  }</CODE><BR> <P><B>閫夐」錛?</B></P> <UL> <LI>A. "abcxyzabc" <LI>B. "abcxyzabcpqr" <LI>C. "ABCXYZabcpqr" <LI>D. "ABCXYZabc" <LI>E. 浠g爜涓嶈兘緙栬瘧 </LI></UL> <P><B>姝g‘絳旀錛?</B></P> <UL> <LI>A </LI></UL> <P><B>璇存槑錛?</B></P> <P>榪欐浠g爜鍙互鏃犻敊璇湴緙栬瘧榪愯錛岃緭鍑衡渁bcxyxabc鈥濄傚湪榪欐浠g爜涓紝 <CODE><FONT face=Courier size=1>s1</FONT></CODE> 鍜?<CODE><FONT face=Courier size=1>s2</FONT></CODE> 鏈鍒濇寚鍚戝悓涓涓?<CODE><FONT face=Courier size=1>String</FONT></CODE> 瀵硅薄鈥渁bc鈥濄傚綋鈥渪yz鈥濊繛鎺ュ埌 <CODE><FONT face=Courier size=1>s1</FONT></CODE> 涓婃椂錛屽氨鍒涘緩浜嗕竴涓柊鐨?<CODE><FONT face=Courier size=1>String</FONT></CODE> 瀵硅薄鈥渁bcxyz鈥?錛屽茍涓?<CODE><FONT face=Courier size=1>s1</FONT></CODE> 鎸囧悜瀹冦傛敞鎰?<CODE><FONT face=Courier size=1>s2</FONT></CODE> 浠嶇劧鎸囧悜鍘熸潵鐨?<CODE><FONT face=Courier size=1>String</FONT></CODE> 瀵硅薄鈥渁bc鈥濓紝瀹冩病鏈夋敼鍙樸?<CODE><FONT face=Courier size=1>concat()</FONT></CODE> 鍜?<CODE><FONT face=Courier size=1>toUpperCase()</FONT></CODE> 鏂規(guī)硶娌℃湁浠諱綍鏁堟灉錛屽洜涓轟綔涓鴻繖浜涙搷浣滅殑緇撴灉鍒涘緩鐨勬柊 <CODE><FONT face=Courier size=1>String</FONT></CODE> 瀵硅薄涓嶆嫢鏈変換浣曞紩鐢ㄣ傛墍浠ユ渶鍚?<CODE><FONT face=Courier size=1>s1</FONT></CODE> 鍖呭惈鈥渁bcxyz鈥濊?<CODE><FONT face=Courier size=1>s2</FONT></CODE> 鍖呭惈鈥渁bc鈥濓紝浠庤?A 涓烘紜粨鏋溿? <HR> </P><img src ="http://www.tkk7.com/yuanhuaming/aggbug/26085.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yuanhuaming/" target="_blank">鐤祦鎴愭?/a> 2005-12-30 16:49 <a href="http://www.tkk7.com/yuanhuaming/archive/2005/12/30/26085.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬鏋勯犲嚱鏁?/title><link>http://www.tkk7.com/yuanhuaming/archive/2005/12/29/25869.html</link><dc:creator>鐤祦鎴愭?/dc:creator><author>鐤祦鎴愭?/author><pubDate>Thu, 29 Dec 2005 05:45:00 GMT</pubDate><guid>http://www.tkk7.com/yuanhuaming/archive/2005/12/29/25869.html</guid><wfw:comment>http://www.tkk7.com/yuanhuaming/comments/25869.html</wfw:comment><comments>http://www.tkk7.com/yuanhuaming/archive/2005/12/29/25869.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yuanhuaming/comments/commentRss/25869.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yuanhuaming/services/trackbacks/25869.html</trackback:ping><description><![CDATA[<P align=left>      鏋勯犲嚱鏁板悕蹇呴』涓庣被鍚嶇浉鍖歸厤騫朵笖蹇呴』娌℃湁榪斿洖綾誨瀷銆傚畠浠彲浠ヨ閲嶈澆錛屼絾鏄笉琚瓙綾葷戶鎵褲?褰撶被琚疄渚嬪寲鏃訛紝灝變細鑷姩璋冪敤鏋勯犲嚱鏁般?BR><BR><STRONG>璋冪敤鏋勯犲嚱鏁?nbsp;<BR></STRONG>      鍙兘浠庡叾浠栨瀯閫犲嚱鏁頒腑璋冪敤鏋勯犲嚱鏁般傝璋冪敤鍚屼竴涓被涓殑鏋勯犲嚱鏁幫紝鐢ㄥ尮閰嶇殑鍙傛暟璋冪敤 <CODE><FONT face=Courier size=1>this()</FONT></CODE> 鍑芥暟銆傝璋冪敤瓚呯被涓殑鏋勯犲嚱鏁幫紝鐢ㄥ尮閰嶇殑鍙傛暟璋冪敤 <CODE><FONT face=Courier size=1>super()</FONT></CODE> 鍑芥暟銆傚垱寤哄瓙綾誨璞℃椂錛屾寜灞傛緇撴瀯涓粠涓婂埌涓嬬殑欏哄簭璋冪敤鎵鏈夎秴綾葷殑鏋勯犲嚱鏁般?</P> <P><B>榛樿鏋勯犲嚱鏁?nbsp;</B><BR>      濡傛灉娌℃湁鍦ㄧ被涓彁渚涗換浣曞叾浠栨瀯閫犲嚱鏁幫紝緙栬瘧鍣ㄥ皢鍒涘緩榛樿鏋勯犲嚱鏁般傚畠娌℃湁浠諱綍鍙傛暟銆傞粯璁ゆ瀯閫犲嚱鏁拌皟鐢ㄨ秴綾葷殑鏃犲弬鏁版瀯閫犲嚱鏁般傚畠涓庣被鏈夊悓鏍風殑璁塊棶淇グ絎︺?<BR><BR><STRONG>鏋勯犲嚱鏁扮殑鍑犵鐢ㄦ硶<BR>1銆?/STRONG>濡傛灉璋冪敤綾葷殑榛樿鏋勯犲嚱鏁幫紝鑰岀埗綾繪湁甯﹀弬鏁扮殑鏋勯犲嚱鏁幫紝閭d箞鎮(zhèn)ㄧ殑浠g爜灝嗕笉鑳界紪璇戙傚師鍥犳槸瀛愮被鐨勯粯璁ゆ瀯閫犲嚱鏁伴殣寮忓湴璋冪敤鍏剁埗綾葷殑鏃犲弬鏁版瀯閫犲嚱鏁般?BR></P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">緙栬瘧閿欒</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #0000ff">   class</SPAN><SPAN style="COLOR: #000000"> Temp<BR><IMG id=Codehighlighter1_18_97_Open_Image onclick="this.style.display='none'; Codehighlighter1_18_97_Open_Text.style.display='none'; Codehighlighter1_18_97_Closed_Image.style.display='inline'; Codehighlighter1_18_97_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top></SPAN><SPAN id=Codehighlighter1_18_97_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"></SPAN><SPAN id=Codehighlighter1_18_97_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> x, y;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  Temp(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> x, </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> y) <BR><IMG id=Codehighlighter1_56_95_Open_Image onclick="this.style.display='none'; Codehighlighter1_56_95_Open_Text.style.display='none'; Codehighlighter1_56_95_Closed_Image.style.display='inline'; Codehighlighter1_56_95_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top> </SPAN><SPAN id=Codehighlighter1_56_95_Open_Text><SPAN style="COLOR: #000000">{ <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.x </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> x; <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.y </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> y; <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_124_196_Open_Image onclick="this.style.display='none'; Codehighlighter1_124_196_Open_Text.style.display='none'; Codehighlighter1_124_196_Closed_Image.style.display='inline'; Codehighlighter1_124_196_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> test </SPAN><SPAN style="COLOR: #0000ff">extends</SPAN><SPAN style="COLOR: #000000"> Temp </SPAN><SPAN id=Codehighlighter1_124_196_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"></SPAN><SPAN id=Codehighlighter1_124_196_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String args[])<BR><IMG id=Codehighlighter1_168_194_Open_Image onclick="this.style.display='none'; Codehighlighter1_168_194_Open_Text.style.display='none'; Codehighlighter1_168_194_Closed_Image.style.display='inline'; Codehighlighter1_168_194_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top>  </SPAN><SPAN id=Codehighlighter1_168_194_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"></SPAN><SPAN id=Codehighlighter1_168_194_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        test dot</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> test();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV><BR>2銆傚鏋滄瀯閫犲嚱鏁版槸縐佹湁鐨勮瘽錛屽垯璇ュ璞″彧鑳藉湪璇ョ被涓疄渚嬪寲 <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">緙栬瘧鍑洪敊錛氫笉鑳借瀹炰緥鍖?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> test {<BR>    <BR>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String args[])<BR>    {<BR>        temp t </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> temp();<BR>    }    <BR>}<BR></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> temp {<BR>    </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> temp() {<BR>        System.out.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">temp</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR>    }<BR>}</SPAN></DIV><img src ="http://www.tkk7.com/yuanhuaming/aggbug/25869.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yuanhuaming/" target="_blank">鐤祦鎴愭?/a> 2005-12-29 13:45 <a href="http://www.tkk7.com/yuanhuaming/archive/2005/12/29/25869.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>null鍜?鈥溾?/title><link>http://www.tkk7.com/yuanhuaming/archive/2005/10/21/16333.html</link><dc:creator>鐤祦鎴愭?/dc:creator><author>鐤祦鎴愭?/author><pubDate>Fri, 21 Oct 2005 12:20:00 GMT</pubDate><guid>http://www.tkk7.com/yuanhuaming/archive/2005/10/21/16333.html</guid><wfw:comment>http://www.tkk7.com/yuanhuaming/comments/16333.html</wfw:comment><comments>http://www.tkk7.com/yuanhuaming/archive/2005/10/21/16333.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yuanhuaming/comments/commentRss/16333.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yuanhuaming/services/trackbacks/16333.html</trackback:ping><description><![CDATA[<P>         浠婂ぉ紕板埌涓涓緢濂囨殑闂錛屾槸浠庢暟鎹簱涓彇鏌愪釜鏃墮棿綾誨瀷瀛楁鐨勫鹼紝闇瑕佹妸瀹冭漿鎴恠tring鍨嬶紝鐒跺悗闂灝卞嚭鏉ヤ簡錛屽洜涓鴻繖涓瓧孌靛彲鑳藉瓨鍦ㄧ┖鍊鹼紝鏂偣鍚庤蛋鍒拌漿string鍨嬭繖琛屽氨鎶ラ敊銆備竴鐩存病鎯蟲槑鐧斤紝鍚庢潵鑰佸ぇ璺戣繃鏉ョ瀯浜嗗嚑鐪煎氨鎸囧嚭浜嗛棶棰樻墍鍦ㄣ傞珮浜哄氨鏄珮浜哄晩錛?BR>         鐢變簬浠庢暟鎹簱璇誨埌鐨勭┖瀛楁錛漬ull鐨勶紝鎵浠ュ綋鎴憈oString()鐨勬椂鍊欒偗瀹氫細鎶ラ敊銆備婦涓緥瀛愶細<BR><BR>public class test{<BR> public test(){<BR>  Object s = null;               //榪欐瘮浣滃瓧孌電殑鍊?BR>  String s1 = s.toString();   //鎶ラ敊<BR>  System.out.println (s1);<BR> } <BR> public static void main(String[] a){<BR>  new test();<BR> }<BR>}<BR><BR>         瑙e喅鐨勫姙娉曞氨鏄啓涓涓柟娉曞皢鎵鏈変負NULL鐨勫艱祴涓虹┖<BR><BR>public class test{<BR> public test(){<BR>  Object s = null;<BR>  String s1 = this.strSafe(s);<BR>  System.out.println (s1); }<BR> <BR> public static void main(String[] a){<BR>  new test();<BR> } <BR> <BR> public String strSafe(Object obj){<BR>  if(obj == null)<BR>   obj="";<BR>  return obj.toString();<BR> }<BR>}<BR><BR><BR>         鏈榪戞垜鎰熻瓚婃潵瓚婅繜閽濅簡錛屾兂涓緢綆鍗曠殑for寰幆灝辮鎯寵佸崐澶┿傞儊闂峰晩錛岀瓑鍙戦挶浜嗕拱鑴戣交鏉懼幓浜?BR>      </P><img src ="http://www.tkk7.com/yuanhuaming/aggbug/16333.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yuanhuaming/" target="_blank">鐤祦鎴愭?/a> 2005-10-21 20:20 <a href="http://www.tkk7.com/yuanhuaming/archive/2005/10/21/16333.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>classpath蹇冨緱http://www.tkk7.com/yuanhuaming/archive/2005/08/31/11610.html鐤祦鎴愭?/dc:creator>鐤祦鎴愭?/author>Wed, 31 Aug 2005 02:55:00 GMThttp://www.tkk7.com/yuanhuaming/archive/2005/08/31/11610.htmlhttp://www.tkk7.com/yuanhuaming/comments/11610.htmlhttp://www.tkk7.com/yuanhuaming/archive/2005/08/31/11610.html#Feedback1http://www.tkk7.com/yuanhuaming/comments/commentRss/11610.htmlhttp://www.tkk7.com/yuanhuaming/services/trackbacks/11610.html1) classpath鐨勪綔鐢細瀹冪殑浣滅敤灝變簨璁﹋ava鎵懼埌浣犳墍瑕佹墽琛岋紝鎴栦綘鎷ユ湁鐨勭被銆?BR>2) classpath鐨勮緗細璁劇疆classpath錛屼竴鑸槸鍦ㄧ郴緇熺幆澧冧腑璁劇疆銆?BR>

      涓鑸垜浠湪涓涓被涓0鏄庡寘鍚嶅涓嬶細
package com.demo;
public class test{
   public static void main(String[] args){
      System.out.print("this is a test!");
   }
}
      灝辨槸鎶妕est綾繪斁榪沜om\demo鐩綍涓嬶紝浣嗚繖鏃朵綘涓嶈兘鍦╟om\demo閲屾墽琛宩ava test,鍥犱負JAVA鏄氳繃classpath鍘繪壘test.java鐨勶紝鎵浠ュ畠鎵劇殑榛樿鐩綍閲岀殑test.java(濡傛灉娌℃湁灝辨姤閿?錛涜屼笉鏄幓鎵綾om\demo鐩綍涓嬬殑test.java銆?BR> 榪欐槸鍥犱負java鍙細鍦╟lasspath涓壘鏈夊叧java鐨勪笢瑗匡紝涓嶄細鐞嗕細path銆傚彧鏈夎繖鏍鋒墠鑳借法騫沖彴鍢涖?BR>      濡傛灉浣犳兂榪愯浣犲寘閲岀殑JAVA綾伙紝閭e氨瑕佽緗竴涓嬬幆澧冨彉閲忥細
a.鍏堢‘瀹氫綘鐨勫寘鍦ㄥ摢涓洏錛屾瘮鏂硅鍦–錛氱殑璇?BR>b.鐒跺悗璁綾lasspath=C:\;
c.鍙互鏈?縐嶈闂柟寮?
   1) C:\com\demo>javac test.java
   2) C錛歕浠諱綍鐩綍\>java com.demo.test

鍩烘湰涔熷氨榪欐牱浜嗭紝鏈変粈涔堜笉瀵圭殑璇瘋窡璐達紒



]]>
Java瀛︿範絎旇錛嶉泦鍚堟鏋?/title><link>http://www.tkk7.com/yuanhuaming/archive/2005/08/19/10468.html</link><dc:creator>鐤祦鎴愭?/dc:creator><author>鐤祦鎴愭?/author><pubDate>Thu, 18 Aug 2005 22:55:00 GMT</pubDate><guid>http://www.tkk7.com/yuanhuaming/archive/2005/08/19/10468.html</guid><wfw:comment>http://www.tkk7.com/yuanhuaming/comments/10468.html</wfw:comment><comments>http://www.tkk7.com/yuanhuaming/archive/2005/08/19/10468.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yuanhuaming/comments/commentRss/10468.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yuanhuaming/services/trackbacks/10468.html</trackback:ping><description><![CDATA[<P>闆嗗悎妗嗘灦鏄彁渚涚鐞嗗璞¢泦鍚堢殑鎺ュ彛鍜岀被錛屽畠鍖呭惈3涓粍浠訛細</P> <P><BR>1.鎺ュ彛 錛氳〃紺洪泦鍚堢殑鎶借薄鏁版嵁綾誨瀷<BR>   a.Collection鎺ュ彛錛氭槸鏋勫緩闆嗗悎妗嗘灦鐨勬牴銆?BR>   b.Set鎺ュ彛錛氭墿灞曚簡Collection鎺ュ彛錛屽畠涓嶅厑璁告湁閲嶅鍏冪礌銆?BR>   c.List鎺ュ彛錛氭墿灞曚簡Collection鎺ュ彛錛屼竴浜涢泦鍚堝叿鏈夐『搴忥紝閫氬父琚垚涓哄垪琛ㄣ?BR>   d.Map鎺ュ彛錛氭病鏈夌戶鎵緾ollection鎺ュ彛錛屽叿鏈夐敭鍜屽肩殑瀵硅薄銆備笉鑳藉寘鍚噸澶嶉敭錛屼絾鍙互鍖呭惈閲嶅鍊箋?BR><BR>2.綾?錛氱敤浜庡瓨鍌ㄩ泦鍚堢殑瀹為檯鏁版嵁瀵硅薄<BR>   a.ArrayList 錛氫紭鐐規(guī)槸鍙互鍔ㄦ佹坊鍔犳暟鎹厓绱狅紝閬嶅巻鏁堢巼姣擫iskedList蹇?BR>   b.LinkedList錛氳繖鏄竴縐嶉摼琛ㄧ殑鏁版嵁緇撴瀯錛屽畠鍜屾暟緇勭殑鍖哄埆鍦ㄤ簬鏁扮粍鏄竴孌佃繛緇殑鍐呭瓨絀洪棿錛岃?BR>閾捐〃鍙互鏄笉榪炵畫鐨勶紝榪欎竴鐐瑰氨璇存槑浜嗛摼琛ㄥ鍐呭瓨絀洪棿鐨勫悎鐞嗗埄鐢ㄣ傜湅涓嬪崟鍚戦摼琛ㄧ殑緇撴瀯鍥撅細<BR><IMG src="http://photo.blogchina.com/data1/2005-6-22/001/134/277/15460/15460_l.jpg"><BR>澶磋妭鐐瑰厛鎸囧悜絎?涓妭鐐癸紝鐒跺悗鑺傜偣1鐨勬寚閽堝煙鍙堟寚鍚戜笅涓涓妭鐐癸紝鏈鍚庣敱浜庤妭鐐?鍚庨潰娌″厓绱犱簡錛屽氨涓簄ull銆?BR>璇曟兂涓涓嬪綋瀵歸摼琛ㄨ繘琛屾彃鍏ュ垹闄ょ殑鏃跺欏彧闇瑕佸皢鎸囬拡鍩熺殑鎸囧悜鏀瑰彉涓涓嬪氨鍙互杈懼埌鎵闇鏁堟灉錛岃屾暟緇勬彃鍏?BR>鍒犻櫎鐨勬椂鍊欓渶瑕佸皢鎻掑叆鎴栧垹闄ょ殑浣嶇疆鍚庢墍鏈夊厓绱犲悗縐繪垨鍓嶇Щ錛屽緢鏄劇劧鍦ㄧ畻娉曚笂鎻掑叆鍒犻櫎鎿嶄綔閾捐〃瑕佹瘮鏁扮粍蹇?BR>璇翠簡榪欎箞澶氭暟緇勪笌閾捐〃鐨勫尯鍒紝涓嬮潰鏉ョ湅鐪婰inkedList榪欎釜綾繪庝箞鐢細<BR></P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">import java.util.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> linkedlist<BR><IMG id=Codehighlighter1_45_482_Open_Image onclick="this.style.display='none'; Codehighlighter1_45_482_Open_Text.style.display='none'; Codehighlighter1_45_482_Closed_Image.style.display='inline'; Codehighlighter1_45_482_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_45_482_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_45_482_Closed_Text.style.display='none'; Codehighlighter1_45_482_Open_Image.style.display='inline'; Codehighlighter1_45_482_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_45_482_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_45_482_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args)<BR><IMG id=Codehighlighter1_88_480_Open_Image onclick="this.style.display='none'; Codehighlighter1_88_480_Open_Text.style.display='none'; Codehighlighter1_88_480_Closed_Image.style.display='inline'; Codehighlighter1_88_480_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_88_480_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_88_480_Closed_Text.style.display='none'; Codehighlighter1_88_480_Open_Image.style.display='inline'; Codehighlighter1_88_480_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_88_480_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_88_480_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  LinkedList linked</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> LinkedList();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">add element</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.add(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">111</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  linked.add(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">222</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  linked.addFirst(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">111</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">allow repeat</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.addLast(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">555</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">insert element</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.add(</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">333</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">modify </SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.</SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">555</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">remove</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.remove(</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P>   c.HashSet錛氫竴鐪嬪氨鐭ラ亾鏄搱瑗挎暎鍒楄〃鐨勯泦鍚堢被錛屼笉鑳芥湁閲嶅鍏冪礌銆備緥瀛愬厤浜嗭紝姣旇緝綆鍗曠殑錛屼笂孌典唬鐮佹垜宸茬粡<BR>鍚庢?zhèn)斿啓浜嗗Q岀敤榪噅ava鐨勯兘鐭ラ亾銆?BR>   d.TreeSet錛氬皢鍏冪礌鍌ㄥ瓨鍦ㄦ爲涓紝閫傚悎蹇熸绱㈠ぇ閲忔帓搴忎俊鎭?BR>   e.HashMap:HashMap 綾繪病鏈夊垎綾繪垨鑰呮帓搴忋傚畠鍏佽涓涓?null 閿拰澶氫釜 null 鍊箋?<BR>Hashtable 綾諱技浜?HashMap錛屼絾鏄笉鍏佽 null 閿拰 null 鍊箋傚畠涔熸瘮 HashMap 鎱紝鍥犱負瀹冩槸鍚屾鐨勩?<BR></P> <P>3.綆楁硶 :鐢ㄤ簬鎿嶄綔闆嗗悎錛屽茍琚畾涔変負Collections綾諱腑鐨勯潤鎬佹柟娉曪紝緇欎釜渚嬪瓙灝卞緢濂界悊瑙d簡<BR></P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">import java.util.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> linkedlist<BR><IMG id=Codehighlighter1_45_474_Open_Image onclick="this.style.display='none'; Codehighlighter1_45_474_Open_Text.style.display='none'; Codehighlighter1_45_474_Closed_Image.style.display='inline'; Codehighlighter1_45_474_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_45_474_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_45_474_Closed_Text.style.display='none'; Codehighlighter1_45_474_Open_Image.style.display='inline'; Codehighlighter1_45_474_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_45_474_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_45_474_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args)<BR><IMG id=Codehighlighter1_88_472_Open_Image onclick="this.style.display='none'; Codehighlighter1_88_472_Open_Text.style.display='none'; Codehighlighter1_88_472_Closed_Image.style.display='inline'; Codehighlighter1_88_472_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_88_472_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_88_472_Closed_Text.style.display='none'; Codehighlighter1_88_472_Open_Image.style.display='inline'; Codehighlighter1_88_472_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_88_472_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_88_472_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  LinkedList linked</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> LinkedList();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">add element</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  linked.add(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">111</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  linked.add(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">222</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  linked.addFirst(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">333</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  linked.addLast(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">555</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">鏉ヤ釜鎺掑簭</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  Collections.sort(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">濡傛灉瑕佸弽杞帓鐨勮瀹氫箟涓涓狢omparator鐨勬帴鍙?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  Comparator cmp</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">Collections.reverseOrder();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  Collections.sort(linked,cmp);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(linked);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P><BR>榪樻湁N澶氭柟娉曪紝鑷繁鍘昏瘯璇曟妸銆?BR></P> <P>鍏跺疄榪樻湁寰堝闆嗗悎綾誨拰鎺ュ彛錛?BR>鏈鍚庢葷粨涓嬬粨鍚堟鏋剁殑浼樼偣(鎶勪功)錛?BR>1.闆嗗悎妗嗘灦鎻愪緵浜嗕竴緇勫彲鐢ㄧ殑闆嗗悎鎺ュ彛<BR>2.鎻愪緵浜嗘湁鏁堢殑鏁版嵁緇撴瀯鍜岀畻娉曪紝鍑忓皯浜嗙紪紼嬮噺<BR>3.浣挎垜浠柟渚跨殑鎵╁睍闆嗗悎<BR>4.璁捐鏂癆PI鐨勫伐浣滈檷鍒版渶灝?BR>5.鎺ュ彛綆楁硶鐨勫彲閲嶇敤鎬ф彁楂樹簡杞歡鐨勫彲閲嶇敤鎬?BR><BR></P><img src ="http://www.tkk7.com/yuanhuaming/aggbug/10468.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yuanhuaming/" target="_blank">鐤祦鎴愭?/a> 2005-08-19 06:55 <a href="http://www.tkk7.com/yuanhuaming/archive/2005/08/19/10468.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://9akk.com" target="_blank">污网站在线观看免费</a>| <a href="http://bearsou.com" target="_blank">亚洲AV无码AV男人的天堂不卡</a>| <a href="http://se969.com" target="_blank">亚洲日韩在线观看免费视频</a>| <a href="http://qu41.com" target="_blank">亚洲人成色77777在线观看</a>| <a href="http://liexion.com" target="_blank">美女内射毛片在线看免费人动物</a>| <a href="http://yctbhb.com" target="_blank">亚洲国产高清在线</a>| <a href="http://www33399.com" target="_blank">亚洲中文字幕精品久久</a>| <a href="http://pppmmmm.com" target="_blank">av无码免费一区二区三区</a>| <a href="http://55xxb.com" target="_blank">亚洲国产成人无码av在线播放</a>| <a href="http://jack-fx.com" target="_blank">**实干一级毛片aa免费</a>| <a href="http://zgbeian.com" target="_blank">亚洲欧洲日产专区</a>| <a href="http://qqcnm.com" target="_blank">欧美男同gv免费网站观看 </a>| <a href="http://gzmkqp.com" target="_blank">成人免费看片又大又黄</a>| <a href="http://ipx588.com" target="_blank">国产 亚洲 中文在线 字幕 </a>| <a href="http://dunyny.com" target="_blank">免费一级特黄特色大片在线 </a>| <a href="http://sdzntg.com" target="_blank">亚洲色欲色欲www在线丝</a>| <a href="http://cnpc1002.com" target="_blank">中文在线日本免费永久18近</a>| <a href="http://74rr.com" target="_blank">久久电影网午夜鲁丝片免费</a>| <a href="http://www19977.com" target="_blank">亚洲欧美日韩中文字幕在线一区 </a>| <a href="http://www-774220.com" target="_blank">成人浮力影院免费看</a>| <a href="http://boyonet.com" target="_blank">亚洲一区精彩视频</a>| <a href="http://3x79.com" target="_blank">亚洲av无码乱码在线观看野外</a>| <a href="http://rr433.com" target="_blank">精品久久久久久国产免费了</a>| <a href="http://s88s88.com" target="_blank">亚洲va在线va天堂va888www</a>| <a href="http://wwwee2.com" target="_blank">91免费播放人人爽人人快乐</a>| <a href="http://864007.com" target="_blank">亚洲AV无码一区二区一二区</a>| <a href="http://yeyaweiban.com" target="_blank">免费v片在线观看</a>| <a href="http://66qiqi.com" target="_blank">免费观看91视频</a>| <a href="http://cnepu.com" target="_blank">亚洲自国产拍揄拍</a>| <a href="http://gttest5.com" target="_blank">亚洲精品国产va在线观看蜜芽</a>| <a href="http://www-777730.com" target="_blank">免费无码av片在线观看</a>| <a href="http://777mecom.com" target="_blank">亚洲欧洲日产专区</a>| <a href="http://mm1131.com" target="_blank">亚洲高清成人一区二区三区</a>| <a href="http://usagaa.com" target="_blank">免费无码成人AV在线播放不卡</a>| <a href="http://dslygc.com" target="_blank">国产成人精品日本亚洲18图</a>| <a href="http://sds54.com" target="_blank">亚洲国产综合无码一区二区二三区</a>| <a href="http://shadaiym.com" target="_blank">久久青草免费91线频观看不卡 </a>| <a href="http://7788mgqb.com" target="_blank">国产免费久久精品99re丫y</a>| <a href="http://djqq520.com" target="_blank">老司机亚洲精品影院在线观看</a>| <a href="http://www-79983.com" target="_blank">国产亚洲午夜高清国产拍精品</a>| <a href="http://qu41.com" target="_blank">AV激情亚洲男人的天堂国语</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>