﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-第二小组-随笔分类-学习感想</title><link>http://www.blogjava.net/the2rdTeam/category/2309.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 12:33:09 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 12:33:09 GMT</pubDate><ttl>60</ttl><item><title>Java 5.0新特性 - 枚举类型enum</title><link>http://www.blogjava.net/the2rdTeam/archive/2005/07/29/8685.html</link><dc:creator>第二小组</dc:creator><author>第二小组</author><pubDate>Thu, 28 Jul 2005 16:20:00 GMT</pubDate><guid>http://www.blogjava.net/the2rdTeam/archive/2005/07/29/8685.html</guid><wfw:comment>http://www.blogjava.net/the2rdTeam/comments/8685.html</wfw:comment><comments>http://www.blogjava.net/the2rdTeam/archive/2005/07/29/8685.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/the2rdTeam/comments/commentRss/8685.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/the2rdTeam/services/trackbacks/8685.html</trackback:ping><description><![CDATA[<P><FONT face=Verdana size=2>Java 语言的两个基本的元素是类(class)和接口(interface),现在Tiger又引入了枚举(enum).<BR>其实枚举也不能算是严格意义上的新元素,它也是一种类,是一种特殊的类.所有的枚举都默认继承自java.lang.Enum,如果所有的类都默认继承自java.lang.Object一样.在Java提供的枚举中提供了比C/C++更多的功能,在这里可以像一般的类一样定义方法和属性,也可以有受限的构造函数(只能是private,且默认如此).</FONT></P>
<P><FONT face=Verdana size=2>下面试写了一个枚举,以供参考.<BR><BR></FONT></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><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">package&nbsp;kb.enums;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_43_505_Open_Image onclick="this.style.display='none'; Codehighlighter1_43_505_Open_Text.style.display='none'; Codehighlighter1_43_505_Closed_Image.style.display='inline'; Codehighlighter1_43_505_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_43_505_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_43_505_Closed_Text.style.display='none'; Codehighlighter1_43_505_Open_Image.style.display='inline'; Codehighlighter1_43_505_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">enum</SPAN><SPAN style="COLOR: #000000">&nbsp;Temperature&nbsp;</SPAN><SPAN id=Codehighlighter1_43_505_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_43_505_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;VeryHigh(</SPAN><SPAN style="COLOR: #000000">100.0</SPAN><SPAN style="COLOR: #000000">),&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">!这样使用构造函数</SPAN></FONT></FONT><SPAN style="COLOR: #008000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;High,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;LessComfortable,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Comfortable(</SPAN><SPAN style="COLOR: #000000">25.0</SPAN><SPAN style="COLOR: #000000">),&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">构造函数</SPAN></FONT></FONT><SPAN style="COLOR: #008000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;MoreComfortable,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Low,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;VeryLow(</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">15.0</SPAN><SPAN style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">构造函数</SPAN></FONT></FONT><SPAN style="COLOR: #008000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;degree;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_229_256_Open_Image onclick="this.style.display='none'; Codehighlighter1_229_256_Open_Text.style.display='none'; Codehighlighter1_229_256_Closed_Image.style.display='inline'; Codehighlighter1_229_256_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_229_256_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_229_256_Closed_Text.style.display='none'; Codehighlighter1_229_256_Open_Image.style.display='inline'; Codehighlighter1_229_256_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Temperature(&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;d&nbsp;)&nbsp;</SPAN><SPAN id=Codehighlighter1_229_256_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_229_256_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">private</SPAN></FONT></FONT><SPAN style="COLOR: #008000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;degree&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>&nbsp;d;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_275_295_Open_Image onclick="this.style.display='none'; Codehighlighter1_275_295_Open_Text.style.display='none'; Codehighlighter1_275_295_Closed_Image.style.display='inline'; Codehighlighter1_275_295_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_275_295_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_275_295_Closed_Text.style.display='none'; Codehighlighter1_275_295_Open_Image.style.display='inline'; Codehighlighter1_275_295_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Temperature()&nbsp;</FONT></SPAN><SPAN id=Codehighlighter1_275_295_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"><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/dot.gif"></FONT></SPAN><SPAN id=Codehighlighter1_275_295_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;degree&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1.0</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_337_503_Open_Image onclick="this.style.display='none'; Codehighlighter1_337_503_Open_Text.style.display='none'; Codehighlighter1_337_503_Closed_Image.style.display='inline'; Codehighlighter1_337_503_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_337_503_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_337_503_Closed_Text.style.display='none'; Codehighlighter1_337_503_Open_Image.style.display='inline'; Codehighlighter1_337_503_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;String&nbsp;getMemberList()&nbsp;</SPAN><SPAN id=Codehighlighter1_337_503_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_337_503_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;StringBuffer&nbsp;buf&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;StringBuffer();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_429_472_Open_Image onclick="this.style.display='none'; Codehighlighter1_429_472_Open_Text.style.display='none'; Codehighlighter1_429_472_Closed_Image.style.display='inline'; Codehighlighter1_429_472_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_429_472_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_429_472_Closed_Text.style.display='none'; Codehighlighter1_429_472_Open_Image.style.display='inline'; Codehighlighter1_429_472_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">(&nbsp;Temperature&nbsp;t&nbsp;:&nbsp;Temperature.values()&nbsp;)&nbsp;</SPAN><SPAN id=Codehighlighter1_429_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_429_472_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buf.append(&nbsp;t.toString()&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\n</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>return</FONT></SPAN><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>&nbsp;buf.toString();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></FONT></SPAN></DIV></DIV><BR>
<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><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">package&nbsp;kb.enums;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_47_462_Open_Image onclick="this.style.display='none'; Codehighlighter1_47_462_Open_Text.style.display='none'; Codehighlighter1_47_462_Closed_Image.style.display='inline'; Codehighlighter1_47_462_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_47_462_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_47_462_Closed_Text.style.display='none'; Codehighlighter1_47_462_Open_Image.style.display='inline'; Codehighlighter1_47_462_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;UseTemperature&nbsp;</SPAN><SPAN id=Codehighlighter1_47_462_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_47_462_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;StringBuffer&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;StringBuffer();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_148_459_Open_Image onclick="this.style.display='none'; Codehighlighter1_148_459_Open_Text.style.display='none'; Codehighlighter1_148_459_Closed_Image.style.display='inline'; Codehighlighter1_148_459_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_148_459_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_148_459_Closed_Text.style.display='none'; Codehighlighter1_148_459_Open_Image.style.display='inline'; Codehighlighter1_148_459_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;main(String[]&nbsp;args)&nbsp;</SPAN><SPAN id=Codehighlighter1_148_459_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_148_459_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Temperature&nbsp;temp&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;Temperature.High;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">switch</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">(&nbsp;temp&nbsp;)<BR><IMG id=Codehighlighter1_214_367_Open_Image onclick="this.style.display='none'; Codehighlighter1_214_367_Open_Text.style.display='none'; Codehighlighter1_214_367_Closed_Image.style.display='inline'; Codehighlighter1_214_367_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_214_367_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_214_367_Closed_Text.style.display='none'; Codehighlighter1_214_367_Open_Image.style.display='inline'; Codehighlighter1_214_367_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_214_367_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.blogjava.net/images/dot.gif"></SPAN></FONT></FONT><SPAN id=Codehighlighter1_214_367_Open_Text><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">case</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;Comfortable:<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.append(&nbsp;Temperature.Comfortable.toString()&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\n</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">break</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">default</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">:<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.append(&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Uncomfortable\n</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">break</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>out</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">.append(&nbsp;Temperature.getMemberList()&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.print(&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><FONT face=Verdana size=2>.toString()&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></FONT></SPAN></DIV></DIV><img src ="http://www.blogjava.net/the2rdTeam/aggbug/8685.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/the2rdTeam/" target="_blank">第二小组</a> 2005-07-29 00:20 <a href="http://www.blogjava.net/the2rdTeam/archive/2005/07/29/8685.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>电子书</title><link>http://www.blogjava.net/the2rdTeam/archive/2005/07/26/8507.html</link><dc:creator>第二小组</dc:creator><author>第二小组</author><pubDate>Tue, 26 Jul 2005 13:43:00 GMT</pubDate><guid>http://www.blogjava.net/the2rdTeam/archive/2005/07/26/8507.html</guid><wfw:comment>http://www.blogjava.net/the2rdTeam/comments/8507.html</wfw:comment><comments>http://www.blogjava.net/the2rdTeam/archive/2005/07/26/8507.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/the2rdTeam/comments/commentRss/8507.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/the2rdTeam/services/trackbacks/8507.html</trackback:ping><description><![CDATA[看电子图书看的人头晕晕的，还是书看起来比较舒服。这么快就26号了，感觉好像什么都没做。<img src ="http://www.blogjava.net/the2rdTeam/aggbug/8507.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/the2rdTeam/" target="_blank">第二小组</a> 2005-07-26 21:43 <a href="http://www.blogjava.net/the2rdTeam/archive/2005/07/26/8507.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MVC框架</title><link>http://www.blogjava.net/the2rdTeam/archive/2005/07/25/8375.html</link><dc:creator>第二小组</dc:creator><author>第二小组</author><pubDate>Sun, 24 Jul 2005 23:27:00 GMT</pubDate><guid>http://www.blogjava.net/the2rdTeam/archive/2005/07/25/8375.html</guid><wfw:comment>http://www.blogjava.net/the2rdTeam/comments/8375.html</wfw:comment><comments>http://www.blogjava.net/the2rdTeam/archive/2005/07/25/8375.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/the2rdTeam/comments/commentRss/8375.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/the2rdTeam/services/trackbacks/8375.html</trackback:ping><description><![CDATA[<FONT face=Verdana size=2>MVC是一种设计模式，用在WEB框架中，使我们有效的对WEB层进行再分层：VIEW+ACTION<BR>struts,webwork都是MVC框架，而webwork更是灵活优雅，令人赞叹！<BR>熟悉MVC和接受MVC的人也越来越多。无需多说，Jacker也拥抱MVC；<BR><BR>看来MVC确实是很不错啊，但我还没学呢;-)呵呵,以后再谈自己对MVC的感受吧。</FONT><img src ="http://www.blogjava.net/the2rdTeam/aggbug/8375.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/the2rdTeam/" target="_blank">第二小组</a> 2005-07-25 07:27 <a href="http://www.blogjava.net/the2rdTeam/archive/2005/07/25/8375.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>