ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>久久综合电影,欧美成人精品一区二区男人小说,国色天香久久精品国产一区http://www.aygfsteel.com/yuanhuaming/category/2608.html无论是批评的åQŒèµžæ‰¬çš„åQŒæŒ‡ç€çš„都请EMAIL¾l™æˆ‘åQŒä½ çš„徏议将是我前进的动åŠ? <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.aygfsteel.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.aygfsteel.com/yuanhuaming/archive/2006/04/12/40570.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/40570.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2006/04/12/40570.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/40570.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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">公共¾c?/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">负责控制日志记录的输出部分。它提供了多¿Uè¾“出目标ã€?/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">输出。有三种布局模式åQ?/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">输出代码中指定的消息 </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">输出优先¾U§ï¼Œå?/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">åQ?/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">åQ?/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">åQ?/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">åQ?/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">信息耗费的毫¿U’æ•° </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">输出所属的¾cȝ›®åQŒé€šå¸¸ž®±æ˜¯æ‰€åœ¨ç±»çš„å…¨å?</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">输出产生该日志事件的¾U¿ç¨‹å?</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">输出一个回车换行符åQ?/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">òq›_°ä¸ºâ€?/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">åQ?/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">òq›_°ä¸ºâ€?/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">åQŒä¹Ÿå¯ä»¥åœ¨å…¶åŽæŒ‡å®šæ ¼å¼ï¼Œæ¯”如åQ?/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">åQŒè¾“出类ä¼û|¼š</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">òq?/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">åQ?/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">åQ?/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">åQ?/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是输出çñ”别,分别是debug<info<warn<error<fatal<br />#### R是输出到log</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">cmd是输出到控制å?/span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">htm输出到HTML<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>代码如下åQ?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"> è¯Õd–使用Java的特性文件编写的配置文äšgã€?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"> è¯Õd–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">#应用于socket</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"># 发送日志给邮äšg</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">#自定义Appender <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.aygfsteel.com/yuanhuaming/aggbug/40570.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成æ€?/a> 2006-04-12 10:30 <a href="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/yuanhuaming/archive/2005/12/30/26085.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/26085.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/12/30/26085.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/26085.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/26085.html</trackback:ping><description><![CDATA[<P>1。编译和˜qè¡Œä¸‹é¢˜q™æ®µä»£ç çš„结果是什么? </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>选项åQ?</B></P> <UL> <LI>A. ¾~–译错误 <LI>B. 输出“Equalâ€? <LI>C. 输出“Not Equalâ€? <LI>D. 以上都不æ˜?</LI></UL> <P><B>正确½{”案åQ?</B></P> <UL> <LI>C </LI></UL> <P><B>说明åQ?</B></P> <P><CODE><FONT face=Courier size=1>toString()</FONT></CODE> æ–ÒŽ³•˜q”回½{‰åŒäºŽè¿™ä¸?<CODE><FONT face=Courier size=1>String</FONT></CODE> 对象çš?<CODE><FONT face=Courier size=1>String</FONT></CODE> 。它每次调用时创å»ÞZ¸€ä¸ªæ–°çš„对象ã€?<CODE><FONT face=Courier size=1>==</FONT></CODE> 操作½W¦æ¯”较两个对象引用的位模式而不是实际的 <CODE><FONT face=Courier size=1>String</FONT></CODE> 内容。因此比较返å›?<CODE><FONT face=Courier size=1>false</FONT></CODE>åQŒæ‰§è¡?<CODE><FONT face=Courier size=1>else</FONT></CODE> 语句åQŒè¾“出“Not Equal”ã€? <HR> <P></P> <P>2。在下面代码中,“insert code here”位¾|®å¯ä»¥åˆæ³•地插入哪个选项åQ?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>选项åQ?</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>正确½{”案åQ?</B></P> <UL> <LI>AåQŒB å’?C </LI></UL> <P><B>说明åQ?</B></P> <P>选项 D 不能¾~–译åQŒå› ä¸ºå®ƒè¯•图抛出一个在 <CODE><FONT face=Courier size=1>Parent</FONT></CODE> ¾cÖM¸­æ²¡æœ‰å£°æ˜Žçš?checked 异常。选项 E ž®†ä¸èƒ½ç¼–è¯‘ï¼Œå› äØ“åªæœ‰˜q”回¾cÕdž‹ä¸ç›¸åŒï¼Œè€Œå‚数列表和æ–ÒŽ³•名是相同的。这对于覆盖和重载都是不允许的。选项 A、B å’?C 有不同的参数表,所以它们表½C?<I>重蝲 </I>而不æ˜?<I>覆盖 </I>。因为它们可以抛å‡ÞZ“Q何异常,所以它们是合法的ã€? <HR> <P></P>3。编译和˜qè¡Œä»¥ä¸‹½E‹åºä¼šæœ‰ä»€ä¹ˆç»“果? <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>选项åQ?</B></P> <UL> <LI>A. "abcxyzabc" <LI>B. "abcxyzabcpqr" <LI>C. "ABCXYZabcpqr" <LI>D. "ABCXYZabc" <LI>E. 代码不能¾~–译 </LI></UL> <P><B>正确½{”案åQ?</B></P> <UL> <LI>A </LI></UL> <P><B>说明åQ?</B></P> <P>˜q™æ®µä»£ç å¯ä»¥æ— é”™è¯¯åœ°¾~–译˜qè¡ŒåQŒè¾“出“abcxyxabc”。在˜q™æ®µä»£ç ä¸­ï¼Œ <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> 对象“abc”。当“xyz”连接到 <CODE><FONT face=Courier size=1>s1</FONT></CODE> 上时åQŒå°±åˆ›å¾äº†ä¸€ä¸ªæ–°çš?<CODE><FONT face=Courier size=1>String</FONT></CODE> 对象“abcxyzâ€?åQŒåƈä¸?<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> 对象“abc”,它没有改变ã€?<CODE><FONT face=Courier size=1>concat()</FONT></CODE> å’?<CODE><FONT face=Courier size=1>toUpperCase()</FONT></CODE> æ–ÒŽ³•没有ä»ÖM½•效果åQŒå› ä¸ÞZ½œä¸ø™¿™äº›æ“ä½œçš„¾l“果创徏的新 <CODE><FONT face=Courier size=1>String</FONT></CODE> 对象不拥有ä“Q何引用。所以最å?<CODE><FONT face=Courier size=1>s1</FONT></CODE> 包含“abcxyz”è€?<CODE><FONT face=Courier size=1>s2</FONT></CODE> 包含“abc”,从è€?A 为正¼‹®ç»“æžœã€? <HR> </P><img src ="http://www.aygfsteel.com/yuanhuaming/aggbug/26085.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成æ€?/a> 2005-12-30 16:49 <a href="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/yuanhuaming/archive/2005/12/29/25869.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/25869.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/12/29/25869.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/25869.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/25869.html</trackback:ping><description><![CDATA[<P align=left>      æž„造函数名必须与类名相匚w…òq¶ä¸”必须没有˜q”回¾cÕdž‹ã€‚它们可以被重蝲åQŒä½†æ˜¯ä¸è¢«å­¾cȝ‘ôæ‰Ñ€?当类被实例化æ—Óž¼Œž®×ƒ¼šè‡ªåŠ¨è°ƒç”¨æž„é€ å‡½æ•°ã€?BR><BR><STRONG>调用构造函æ•?nbsp;<BR></STRONG>      åªèƒ½ä»Žå…¶ä»–构造函æ•îC¸­è°ƒç”¨æž„造函数。要调用同一个类中的构造函敎ͼŒç”¨åŒ¹é…çš„参数调用 <CODE><FONT face=Courier size=1>this()</FONT></CODE> 函数。要调用­‘…类中的构造函敎ͼŒç”¨åŒ¹é…çš„参数调用 <CODE><FONT face=Courier size=1>super()</FONT></CODE> 函数。创建子¾cÕd¯¹è±¡æ—¶åQŒæŒ‰å±‚次¾l“构中从上到下的™åºåºè°ƒç”¨æ‰€æœ‰è¶…¾cÈš„æž„造函数ã€?</P> <P><B>默认构造函æ•?nbsp;</B><BR>      å¦‚果没有在类中提供ä“Q何其他构造函敎ͼŒ¾~–译器将创徏默认构造函数。它没有ä»ÖM½•参数。默认构造函数调用超¾cÈš„æ— å‚数构造函数。它与类有同æ ïLš„讉K—®ä¿®é¥°½W¦ã€?<BR><BR><STRONG>构造函数的几种用法<BR>1ã€?/STRONG>如果调用¾cȝš„默认构造函敎ͼŒè€Œçˆ¶¾cÀLœ‰å¸¦å‚数的构造函敎ͼŒé‚£ä¹ˆæ‚¨çš„代码ž®†ä¸èƒ½ç¼–译。原因是子类的默认构造函数隐式地调用其父¾cÈš„æ— å‚数构造函数ã€?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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top> </SPAN><SPAN id=Codehighlighter1_56_95_Open_Text><SPAN style="COLOR: #000000">{ <BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV><BR>2。如果构造函数是¿Uæœ‰çš„话åQŒåˆ™è¯¥å¯¹è±¡åªèƒ½åœ¨è¯¥ç±»ä¸­å®žä¾‹åŒ– <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">¾~–译出错åQšä¸èƒ½è¢«å®žä¾‹åŒ?/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.aygfsteel.com/yuanhuaming/aggbug/25869.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成æ€?/a> 2005-12-29 13:45 <a href="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/yuanhuaming/archive/2005/10/21/16333.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/16333.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/10/21/16333.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/16333.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/16333.html</trackback:ping><description><![CDATA[<P>         ä»Šå¤©¼„°åˆ°ä¸€ä¸ªå¾ˆå¥‡æ€ªçš„问题åQŒæ˜¯ä»Žæ•°æ®åº“中取某个旉™—´¾cÕdž‹å­—段的å€û|¼Œéœ€è¦æŠŠå®ƒè{成string型,然后问题ž®±å‡ºæ¥äº†åQŒå› ä¸ø™¿™ä¸ªå­—ŒDµå¯èƒ½å­˜åœ¨ç©ºå€û|¼Œæ–­ç‚¹åŽèµ°åˆ°è{string型这行就报错。一直没æƒÏx˜Žç™½ï¼ŒåŽæ¥è€å¤§è·‘过来瞄了几眼就指出了问题所在。高人就是高人啊åQ?BR>         ç”׃ºŽä»Žæ•°æ®åº“è¯Õdˆ°çš„空字段åQnull的,所以当我toString()的时候肯定会报错。ä‹D个例子:<BR><BR>public class test{<BR> public test(){<BR>  Object s = null;               //˜q™æ¯”作字ŒD늚„å€?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>         è§£å†³çš„åŠžæ³•å°±æ˜¯å†™ä¸€ä¸ªæ–¹æ³•å°†æ‰€æœ‰äØ“NULLçš„å€ÆDµ‹ä¸ºç©º<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>         æœ€˜q‘我感觉­‘Šæ¥­‘Šè¿Ÿé’äº†åQŒæƒ³ä¸ªå¾ˆ½Ž€å•çš„for循环ž®Þp¦æƒŒ™€åŠå¤©ã€‚郁闷啊åQŒç­‰å‘钱了买脑轻村֎»äº?BR>      </P><img src ="http://www.aygfsteel.com/yuanhuaming/aggbug/16333.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成æ€?/a> 2005-10-21 20:20 <a href="http://www.aygfsteel.com/yuanhuaming/archive/2005/10/21/16333.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>classpath心得http://www.aygfsteel.com/yuanhuaming/archive/2005/08/31/11610.html疯流成æ€?/dc:creator>疯流成æ€?/author>Wed, 31 Aug 2005 02:55:00 GMThttp://www.aygfsteel.com/yuanhuaming/archive/2005/08/31/11610.htmlhttp://www.aygfsteel.com/yuanhuaming/comments/11610.htmlhttp://www.aygfsteel.com/yuanhuaming/archive/2005/08/31/11610.html#Feedback1http://www.aygfsteel.com/yuanhuaming/comments/commentRss/11610.htmlhttp://www.aygfsteel.com/yuanhuaming/services/trackbacks/11610.html1) classpath的作用:它的作用ž®×ƒº‹è®©java扑ֈ°ä½ æ‰€è¦æ‰§è¡Œï¼Œæˆ–你拥有的类ã€?BR>2) classpath的设¾|®ï¼šè®„¡½®classpathåQŒä¸€èˆ¬æ˜¯åœ¨ç³»¾lŸçŽ¯å¢ƒä¸­è®„¡½®ã€?BR>

      ä¸€èˆ¬æˆ‘们在一个类中声明包名如下:
package com.demo;
public class test{
   public static void main(String[] args){
      System.out.print("this is a test!");
   }
}
      ž®±æ˜¯æŠŠtest¾cÀL”¾˜q›com\demo目录下,但这时你不能在com\demo里执行java test,因䨓JAVA是通过classpathåŽÀL‰¾test.java的,所以它扄¡š„默认目录里的test.java(如果没有ž®±æŠ¥é”?åQ›è€Œä¸æ˜¯åŽ»æ‰¾com\demo目录下的test.javaã€?BR> ˜q™æ˜¯å› äØ“java只会在classpath中找有关java的东西,不会理会path。只有这æ äh‰èƒ½è·¨òq›_°å˜›ã€?BR>      å¦‚果你想˜qè¡Œä½ åŒ…里的JAVA¾c»ï¼Œé‚£å°±è¦è®¾¾|®ä¸€ä¸‹çŽ¯å¢ƒå˜é‡ï¼š
a.先确定你的包在哪个盘åQŒæ¯”方说在CåQšçš„è¯?BR>b.然后设classpath=C:\;
c.可以æœ?¿Uè®¿é—®æ–¹å¼?
   1) C:\com\demo>javac test.java
   2) CåQš\ä»ÖM½•目录\>java com.demo.test

基本也就˜q™æ ·äº†ï¼Œæœ‰ä»€ä¹ˆä¸å¯¹çš„误‚·Ÿè´ß_¼



]]>
Java学习½W”è®°åQé›†åˆæ¡†æž?/title><link>http://www.aygfsteel.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.aygfsteel.com/yuanhuaming/archive/2005/08/19/10468.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/10468.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/19/10468.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/10468.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/10468.html</trackback:ping><description><![CDATA[<P>集合框架是提供管理对象集合的接口和类åQŒå®ƒåŒ…含3个组ä»Óž¼š</P> <P><BR>1.接口 åQšè¡¨½Cºé›†åˆçš„æŠ½è±¡æ•°æ®¾cÕdž‹<BR>   a.Collection接口åQšæ˜¯æž„å¾é›†åˆæ¡†æž¶çš„æ ¹ã€?BR>   b.Set接口åQšæ‰©å±•äº†Collection接口åQŒå®ƒä¸å…è®¸æœ‰é‡å¤å…ƒç´ ã€?BR>   c.List接口åQšæ‰©å±•äº†Collection接口åQŒä¸€äº›é›†åˆå…·æœ‰é¡ºåºï¼Œé€šå¸¸è¢«æˆä¸ºåˆ—表ã€?BR>   d.Map接口åQšæ²¡æœ‰ç‘ô承Collection接口åQŒå…·æœ‰é”®å’Œå€¼çš„对象。不能包含重复键åQŒä½†å¯ä»¥åŒ…含重复倹{€?BR><BR>2.¾c?åQšç”¨äºŽå­˜å‚¨é›†åˆçš„实际数据对象<BR>   a.ArrayList åQšä¼˜ç‚ÒŽ˜¯å¯ä»¥åŠ¨æ€æ·»åŠ æ•°æ®å…ƒç´ ï¼ŒéåŽ†æ•ˆçŽ‡æ¯”LiskedListå¿«ã€?BR>   b.LinkedListåQšè¿™æ˜¯ä¸€¿Ué“¾è¡¨çš„æ•°æ®¾l“æž„åQŒå®ƒå’Œæ•°¾l„的区别在于数组是一ŒDµè¿ž¾l­çš„内存½Iºé—´åQŒè€?BR>链表可以是不˜qžç®‹çš„,˜q™ä¸€ç‚¹å°±è¯´æ˜Žäº†é“¾è¡¨å¯¹å†…å­˜½Iºé—´çš„合理利用。看下单向链表的¾l“构图:<BR><IMG src="http://photo.blogchina.com/data1/2005-6-22/001/134/277/15460/15460_l.jpg"><BR>头节点先指向½W?个节点,然后节点1的指针域又指向下一个节点,最后由于节ç‚?后面没元素了åQŒå°±ä¸ºnullã€?BR>试想一下当寚w“¾è¡¨è¿›è¡Œæ’入删除的时候只需要将指针域的指向改变一下就可以辑ֈ°æ‰€éœ€æ•ˆæžœåQŒè€Œæ•°¾l„插å…?BR>删除的时候需要将插入或删除的位置后所有元素后¿UÀLˆ–前移åQŒå¾ˆæ˜„¡„¶åœ¨ç®—法上插入删除操作链表要比数组快ã€?BR>说了˜q™ä¹ˆå¤šæ•°¾l„与链表的区别,下面来看看LinkedList˜q™ä¸ª¾cÀL€Žä¹ˆç”¨ï¼š<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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_45_482_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_88_480_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P>   c.HashSetåQšä¸€çœ‹å°±çŸ¥é“是哈西散列表的集合类åQŒä¸èƒ½æœ‰é‡å¤å…ƒç´ ã€‚例子免了,比较½Ž€å•çš„åQŒä¸ŠŒDµä»£ç æˆ‘已经<BR>后悔写了åQŒç”¨˜q‡java的都知道ã€?BR>   d.TreeSetåQšå°†å…ƒç´ å‚¨å­˜åœ¨æ ‘中,适合快速检索大量排序信息ã€?BR>   e.HashMap:HashMap ¾cÀL²¡æœ‰åˆ†¾cÀLˆ–者排序。它允许一ä¸?null 键和多个 null 倹{€?<BR>Hashtable ¾cÖM¼¼äº?HashMapåQŒä½†æ˜¯ä¸å…è®¸ null 键和 null 倹{€‚它也比 HashMap æ…¢ï¼Œå› äØ“å®ƒæ˜¯åŒæ­¥çš„ã€?<BR></P> <P>3.½Ž—法 :用于操作集合åQŒåÆˆè¢«å®šä¹‰äØ“Collections¾cÖM¸­çš„静态方法,¾l™ä¸ªä¾‹å­ž®±å¾ˆå¥½ç†è§£äº†<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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_45_474_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_88_472_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  Collections.sort(linked);<BR><IMG src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">如果要反转排的要定义一个Comparator的接å?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  Collections.sort(linked,cmp);<BR><IMG src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P><BR>˜q˜æœ‰N多方法,自己去试试把ã€?BR></P> <P>其实˜q˜æœ‰å¾ˆå¤šé›†åˆ¾cÕd’ŒæŽ¥å£åQ?BR>最后æ€È»“下结合框架的优点(抄书)åQ?BR>1.集合框架提供了一¾l„可用的集合接口<BR>2.提供了有效的数据¾l“构和算法,减少了编½E‹é‡<BR>3.使我们方便的扩展集合<BR>4.设计新API的工作降到最ž®?BR>5.接口½Ž—法的可重用性提高了软äšg的可重用æ€?BR><BR></P><img src ="http://www.aygfsteel.com/yuanhuaming/aggbug/10468.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成æ€?/a> 2005-08-19 06:55 <a href="http://www.aygfsteel.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"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> Ö÷Õ¾Ö©Öë³ØÄ£°å£º <a href="http://" target="_blank">ɳºÓÊÐ</a>| <a href="http://" target="_blank">Áù°²ÊÐ</a>| <a href="http://" target="_blank">üɽÊÐ</a>| <a href="http://" target="_blank">ÄÏÏªÏØ</a>| <a href="http://" target="_blank">º£ÄÏÊ¡</a>| <a href="http://" target="_blank">ÖÐÑôÏØ</a>| <a href="http://" target="_blank">ÉÌÇðÊÐ</a>| <a href="http://" target="_blank">бö</a>| <a href="http://" target="_blank">³ç×óÊÐ</a>| <a href="http://" target="_blank">¾¸±ßÏØ</a>| <a href="http://" target="_blank">ºÓÎ÷Çø</a>| <a href="http://" target="_blank">¹þ°ÍºÓÏØ</a>| <a href="http://" target="_blank">´Ó»¯ÊÐ</a>| <a href="http://" target="_blank">ÈÙ²ýÏØ</a>| <a href="http://" target="_blank">ÇÒÄ©ÏØ</a>| <a href="http://" target="_blank">ÓñÌïÏØ</a>| <a href="http://" target="_blank">»³Ô¶ÏØ</a>| <a href="http://" target="_blank">µÂÇåÏØ</a>| <a href="http://" target="_blank">¶«¹âÏØ</a>| <a href="http://" target="_blank">°üÍ·ÊÐ</a>| <a href="http://" target="_blank">ÇÒÄ©ÏØ</a>| <a href="http://" target="_blank">¡²ýÏØ</a>| <a href="http://" target="_blank">ƽ¶ÈÊÐ</a>| <a href="http://" target="_blank">¼ªÁÖÊ¡</a>| <a href="http://" target="_blank">ÁÙÕÄÏØ</a>| <a href="http://" target="_blank">É£Ö²ÏØ</a>| <a href="http://" target="_blank">ÊÕ²Ø</a>| <a href="http://" target="_blank">ÕѾõÏØ</a>| <a href="http://" target="_blank">½¨Æ½ÏØ</a>| <a href="http://" target="_blank">ÁùÅÌË®ÊÐ</a>| <a href="http://" target="_blank">³çÑôÏØ</a>| <a href="http://" target="_blank">¶¼À¼ÏØ</a>| <a href="http://" target="_blank">ÐÂÒ°ÏØ</a>| <a href="http://" target="_blank">ÂÞµéÏØ</a>| <a href="http://" target="_blank">ÐÐÌÆÏØ</a>| <a href="http://" target="_blank">ËÉÑôÏØ</a>| <a href="http://" target="_blank">פÂíµêÊÐ</a>| <a href="http://" target="_blank">µ¦³ÇÏØ</a>| <a href="http://" target="_blank">·áË³ÏØ</a>| <a href="http://" target="_blank">ÁøÖÝÊÐ</a>| <a href="http://" target="_blank">ÇúËÉÏØ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>