锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩精品一区二区三区av,av剧情在线观看,成人jjavhttp://www.aygfsteel.com/the2rdTeam/zh-cnWed, 18 Jun 2025 03:51:24 GMTWed, 18 Jun 2025 03:51:24 GMT60- Java 5.0鏂扮壒鎬?- 鏋氫婦綾誨瀷enumhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8685.html絎簩灝忕粍絎簩灝忕粍Thu, 28 Jul 2005 16:20:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8685.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8685.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8685.html#Feedback4http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8685.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8685.htmlJava 璇█鐨勪袱涓熀鏈殑鍏冪礌鏄被(class)鍜屾帴鍙?interface),鐜板湪Tiger鍙堝紩鍏ヤ簡鏋氫婦(enum).
鍏跺疄鏋氫婦涔熶笉鑳界畻鏄弗鏍兼剰涔変笂鐨勬柊鍏冪礌,瀹冧篃鏄竴縐嶇被,鏄竴縐嶇壒孌婄殑綾?鎵鏈夌殑鏋氫婦閮介粯璁ょ戶鎵胯嚜java.lang.Enum,濡傛灉鎵鏈夌殑綾婚兘榛樿緇ф壙鑷猨ava.lang.Object涓鏍?鍦↗ava鎻愪緵鐨勬灇涓句腑鎻愪緵浜嗘瘮C/C++鏇村鐨勫姛鑳?鍦ㄨ繖閲屽彲浠ュ儚涓鑸殑綾諱竴鏍峰畾涔夋柟娉曞拰灞炴?涔熷彲浠ユ湁鍙楅檺鐨勬瀯閫犲嚱鏁?鍙兘鏄痯rivate,涓旈粯璁ゅ姝?.
涓嬮潰璇曞啓浜嗕竴涓灇涓?浠ヤ緵鍙傝?
package kb.enums;


public enum Temperature
{
VeryHigh(100.0), //!榪欐牱浣跨敤鏋勯犲嚱鏁?/SPAN>
High,
LessComfortable,
Comfortable(25.0), //鏋勯犲嚱鏁?/SPAN>
MoreComfortable,
Low,
VeryLow(-15.0); //鏋勯犲嚱鏁?/SPAN>
private double degree;

Temperature( double d )
{ //private
degree = d;
}

Temperature()
{
degree = -1.0;
}

public static String getMemberList()
{
StringBuffer buf = new StringBuffer();

for( Temperature t : Temperature.values() )
{
buf.append( t.toString() + "\n" );
}
return buf.toString();
}
}

package kb.enums;


public class UseTemperature
{
private static StringBuffer out = new StringBuffer();

public static void main(String[] args)
{
Temperature temp = Temperature.High;
switch( temp )

{
case Comfortable:
out.append( Temperature.Comfortable.toString() + "\n" );
break;
default:
out.append( "Uncomfortable\n" );
break;
}
out.append( Temperature.getMemberList() );
System.out.print( out.toString() );
}

}


]]>- 澶嶆暟綾誨疄鐜?by freeyunhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8684.html絎簩灝忕粍絎簩灝忕粍Thu, 28 Jul 2005 16:16:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8684.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8684.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/29/8684.html#Feedback2http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8684.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8684.html
class complex


{
double real,imag;

complex ()
{}
complex(double r,double i)

{ real=r;
imag=i;
}
complex addition(complex x,complex y)

{ this.real=x.real+y.real;
this.imag=x.imag+y.imag;
return(this) ;
}

complex subtraction(complex x,complex y)

{ this.real=x.real-y.real;
this.imag=x.imag-y.imag;
return(this) ;
}

complex multiplication(complex x,complex y)

{ this.real=(x.real)*(y.real)-(x.imag)*(y.imag);
this.imag=(x.real)*(y.imag)+(x.imag)*(y.real);
return(this) ;
}

complex division(complex x,complex y)

{ this.real=((x.real)*(y.real)+(x.imag)*(y.imag))/((y.real)*(y.real)+(y.imag)*(y.imag));
this.imag=((x.imag)*(y.real)-(x.real)*(y.imag))/((y.real)*(y.real)+(y.imag)*(y.imag));
return(this) ;
}

}

public class C


{
public static void main(String args[])

{
complex c1=new complex(2,4);
complex c2=new complex(4,8);
complex c=new complex();
c.addition(c1,c2);
System.out.println("c=c1(2,4)+c2(4,8)"+" "+c.real+","+c.imag);
c.subtraction(c1,c2);
System.out.println("c=c1(2,4)-c2(4,8)"+" "+c.real+","+c.imag);
c.multiplication(c1,c2);
System.out.println("c=c1(2,4)*c2(4,8)"+" "+c.real+","+c.imag);
c.division(c1,c2);
System.out.println("c=c1(2,4)/c2(4,8)"+" "+c.real+","+c.imag);
}
}

name C.java
榪愯緇撴灉錛歝=c1(2,4)+c2(4,8) 6.0 ,12.0
c=c1(2,4)-c2(4,8) -2.0 ,-4.0
c=c1(2,4)*c2(4,8) -24.0,32.0
c=c1(2,4)/c2(4,8) 0.5,0.0
姹傚姪錛?/FONT>涓轟粈涔堟垜鍦ㄥ嚱鏁頒腑鐢╣etReal,getImag鍒嗗埆榪斿洖鍚勫嚱鏁扮殑瀹為儴鍜岃櫄閮ㄥ疄鐜頒笉浜嗭紵

]]> - 澶嶆暟綾誨疄鐜?- kbhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8681.html絎簩灝忕粍絎簩灝忕粍Thu, 28 Jul 2005 14:44:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8681.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8681.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8681.html#Feedback6http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8681.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8681.html闃呰鍏ㄦ枃

]]> - 榪欏嚑澶╄繘搴﹀浣曞晩錛?/title>http://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8648.html絎簩灝忕粍絎簩灝忕粍Thu, 28 Jul 2005 09:23:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8648.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8648.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8648.html#Feedback0http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8648.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8648.html鎹垜鎰熻濂藉儚榪涘害寰堟參鍟婏紝榪欎箞涔呬簡榪炰竴綃囧涔犳棩璁伴兘娌℃湁鍐欙紝鎵浠ヤ粖澶╂垜鎻愪簡涓棶棰橈紝鐪嬬湅璋佸仛鐨勫ソ浜涖傝繕鏈夊彲浠ョ殑璇濆湪鍚庨潰綆瑕佸湴璇磋鍚勪綅鐨勮繘搴?/STRONG>濡備綍錛岃佹槸娌″弽搴旀垜灝辮寰楀ソ鍍忛兘璺熸垜涓鏍峰憿


]]> - 緙栫▼緇冧範: 鑷繁瀹炵幇澶嶆暟綾?/title>http://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8647.html絎簩灝忕粍絎簩灝忕粍Thu, 28 Jul 2005 09:10:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8647.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8647.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/28/8647.html#Feedback1http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8647.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8647.html瑕佹眰鑷繁瀹炵幇涓涓鏁扮被錛屽疄鐜板鏁扮殑鍚勭蹇呴』鎿嶄綔浠ュ強鍏跺畠鍚堢悊鐨勬搷浣滐紝騫跺敖閲忎繚璇佸叿鏈夋槗鐢ㄦу拰鍙墿灞曟с傚敖閲忚璁′竴涓壇濂界殑綾誨眰嬈$粨鏋勶紝鏈夊繀瑕佺殑娉ㄩ噴絳夈?BR>璇峰湪7鏈?9鏃ユ棭涓?鐐歸挓涔嬪墠灝嗗啓濂界殑浠g爜浠ユ柊闅忕瑪鐨勫艦寮忓彂琛紙娉ㄦ槑浣滆咃級錛屽皬緇勪箣澶栫殑浜哄彲浠ョ洿鎺ヨ窡鍦ㄦ鏂囩珷鍚庨潰錛屽茍鍦ㄧ綉绔欏垎綾諱腑閫夋嫨棣栭〉鍘熷垱Java鎶鏈尯錛屼互渚胯鏇村鐨勪漢璇勪環銆?/FONT>

]]> - 鐢靛瓙涔?/title>http://www.aygfsteel.com/the2rdTeam/archive/2005/07/26/8507.html絎簩灝忕粍絎簩灝忕粍Tue, 26 Jul 2005 13:43:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/26/8507.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8507.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/26/8507.html#Feedback0http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8507.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8507.html
]]> - MVC妗嗘灦http://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8375.html絎簩灝忕粍絎簩灝忕粍Sun, 24 Jul 2005 23:27:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8375.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8375.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8375.html#Feedback0http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8375.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8375.htmlMVC鏄竴縐嶈璁℃ā寮忥紝鐢ㄥ湪WEB妗嗘灦涓紝浣挎垜浠湁鏁堢殑瀵筗EB灞傝繘琛屽啀鍒嗗眰錛歏IEW+ACTION
struts,webwork閮芥槸MVC妗嗘灦錛岃寃ebwork鏇存槸鐏墊椿浼橀泤錛屼護浜鴻禐鍙癸紒
鐔熸倝MVC鍜屾帴鍙桵VC鐨勪漢涔熻秺鏉ヨ秺澶氥傛棤闇澶氳錛孞acker涔熸嫢鎶盡VC錛?BR>
鐪嬫潵MVC紜疄鏄緢涓嶉敊鍟婏紝浣嗘垜榪樻病瀛﹀憿;-)鍛靛懙,浠ュ悗鍐嶈皥鑷繁瀵筂VC鐨勬劅鍙楀惂銆?/FONT>
]]> - 鎴戜滑灝忕粍鍦ㄨ繖閲屽畨瀹朵簡錛?/title>http://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8373.html絎簩灝忕粍絎簩灝忕粍Sun, 24 Jul 2005 22:36:00 GMThttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8373.htmlhttp://www.aygfsteel.com/the2rdTeam/comments/8373.htmlhttp://www.aygfsteel.com/the2rdTeam/archive/2005/07/25/8373.html#Feedback1http://www.aygfsteel.com/the2rdTeam/comments/commentRss/8373.htmlhttp://www.aygfsteel.com/the2rdTeam/services/trackbacks/8373.html澶у鍦ㄨ繖鍎胯媧昏穬涓鐐癸紝鍙戣〃鏂囩珷鍙婇棶棰樻椂瑕佹湁鐐規妸鎻★紝浠ヤ究鍚稿紩鏇村鐨勪漢鍙備笌榪涙潵銆?img src ="http://www.aygfsteel.com/the2rdTeam/aggbug/8373.html" width = "1" height = "1" />
]]>
主站蜘蛛池模板:
宜州市|
孝感市|
台中县|
武威市|
安乡县|
夏津县|
青海省|
民乐县|
林周县|
东至县|
昭觉县|
醴陵市|
望谟县|
光山县|
定陶县|
新野县|
金溪县|
凌海市|
乌苏市|
红安县|
浏阳市|
综艺|
兴海县|
隆回县|
吐鲁番市|
高州市|
霞浦县|
嵩明县|
闸北区|
岳阳市|
资中县|
博客|
法库县|
西峡县|
自治县|
巴青县|
嘉黎县|
个旧市|
南宁市|
田阳县|
许昌市|