锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲v日韩v欧美v综合,久久久一本精品,国产综合在线观看http://www.aygfsteel.com/lee/涓撴敞鎶鏈紝鍏沖績姘戠敓錛?/description>zh-cnFri, 20 Jun 2025 00:15:17 GMTFri, 20 Jun 2025 00:15:17 GMT60- 寮濮嬪涔犵晫闈㈢紪紼?/title>http://www.aygfsteel.com/lee/archive/2005/12/17/24311.htmlleeleeFri, 16 Dec 2005 17:17:00 GMThttp://www.aygfsteel.com/lee/archive/2005/12/17/24311.htmlhttp://www.aygfsteel.com/lee/comments/24311.htmlhttp://www.aygfsteel.com/lee/archive/2005/12/17/24311.html#Feedback0http://www.aygfsteel.com/lee/comments/commentRss/24311.htmlhttp://www.aygfsteel.com/lee/services/trackbacks/24311.htmlimport java.awt.event.*;
import java.util.*;
class wenben extends Frame implements TextListener,ActionListener{
Button butExit = null;
TextArea text1 = null; //杈撳叆鏂囦歡鍩?BR> TextArea text2 = null; //緇撴灉杈撳嚭鐨勬枃浠跺煙
public wenben(){
butExit = new Button();
add(butExit);
butExit.addActionListener(this);
setLayout(null);銆銆銆銆//璁劇疆鐣岄潰鐨勬牸寮?BR> setBounds(35,35,280,250);
butExit.setBounds(50,200,180,20);
butExit.setLabel("紱誨紑");
text1 = new TextArea(" ",10,10);
text1.setBounds(40,50,100,100);
text2 = new TextArea(" ",10,10);
text2.setBounds(150,50,100,100);
add(text1);
text1.addTextListener(this);
add(text2);
text2.setEditable(false);
text2.addTextListener(this);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
System.exit(-1);
}
public void textValueChanged(TextEvent e)
{
double averge = 0; //鍧囧?BR> double result = 0; // 鍜?BR> int i = 0;
if(e.getSource()==text1)
{
String str = text1.getText();
StringTokenizer detect = new StringTokenizer(str); //stringtokenizer寰堢敤鐨勭被,瀵瑰瓧絎︾殑澶勭悊鍔熻兘寮哄ぇ
int n = detect.countTokens();
double[] dou = new double[n]; //涔熷彲鍒嗛厤涓闈欐佺殑鏁扮粍,榪欐牱涓嶇敤姣忔鍒嗛厤絀洪棿,浣嗘槸鏁扮粍鐨勯暱搴︾殑鍙樺寲緙哄皯鐏墊椿鎬?BR> for(i = 0;i<n; i++)
{
String temp = detect.nextToken();
dou[i]=Double.valueOf(temp).doubleValue();
result = result+dou[i];
}
text2.setText(""+result+'\n'+(result/i));
}
}
public static void main(String[] args){
wenben wb = new wenben();
}
}
]]> - 瀵逛袱涓汲tring綾誨瀷鐨勬瘮杈冿紟http://www.aygfsteel.com/lee/archive/2005/12/13/23641.htmlleeleeTue, 13 Dec 2005 05:19:00 GMThttp://www.aygfsteel.com/lee/archive/2005/12/13/23641.htmlhttp://www.aygfsteel.com/lee/comments/23641.htmlhttp://www.aygfsteel.com/lee/archive/2005/12/13/23641.html#Feedback1http://www.aygfsteel.com/lee/comments/commentRss/23641.htmlhttp://www.aygfsteel.com/lee/services/trackbacks/23641.htmlclass string{
static String str = new String("yes");
string(){}
}
public class rtyh {
public static void main(String[] args){
string strr = new string();
String st = new String("yes");
String str = new String("yes");
String str1 = "yes";
String str2 = "yes";
System.out.println(str1==str2);
System.out.println(st.equals(str));
System.out.println(st==str);
System.out.println(str.equals(strr.str));
System.out.println(str==strr.str);
}
}
緇撴灉涓恒ture
ture
銆銆銆銆ture
銆銆銆銆ture
false
鎵浠ワ紝==鐢ㄦ潵瀵瑰紩鐢ㄧ殑鍒ゆ柇,濡傛灉鏄紩鐢ㄧ殑鍚屼竴涓唴瀛樺崟鍏冨垯鐩哥瓑錛屽惁鍒欎笉鐩哥瓑錛巈quals錛堬級鐢ㄦ潵瀵瑰瓧絎︿覆鍐呭鐨勯愪竴鍒ゆ柇錛?/P>
]]>
主站蜘蛛池模板:
时尚|
盐山县|
灵石县|
自贡市|
黔西县|
淮阳县|
阳原县|
巴里|
钟祥市|
皋兰县|
淮南市|
凤庆县|
乌拉特中旗|
乐平市|
沈丘县|
高青县|
涟源市|
韶关市|
平乐县|
新邵县|
宜黄县|
三明市|
开原市|
尉犁县|
阳原县|
泸州市|
本溪市|
华亭县|
宜昌市|
海伦市|
贡嘎县|
广德县|
麻阳|
莱芜市|
大埔区|
聊城市|
尉犁县|
四平市|
遂川县|
商河县|
双牌县|