锘??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><link>http://www.aygfsteel.com/lee/archive/2005/12/17/24311.html</link><dc:creator>lee</dc:creator><author>lee</author><pubDate>Fri, 16 Dec 2005 17:17:00 GMT</pubDate><guid>http://www.aygfsteel.com/lee/archive/2005/12/17/24311.html</guid><wfw:comment>http://www.aygfsteel.com/lee/comments/24311.html</wfw:comment><comments>http://www.aygfsteel.com/lee/archive/2005/12/17/24311.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/lee/comments/commentRss/24311.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/lee/services/trackbacks/24311.html</trackback:ping><description><![CDATA[import java.awt.*;<BR>import java.awt.event.*;<BR>import java.util.*;<BR>class wenben extends Frame implements TextListener,ActionListener{<BR> Button butExit = null;<BR> TextArea text1 = null; //杈撳叆鏂囦歡鍩?BR> TextArea text2 = null;  //緇撴灉杈撳嚭鐨勬枃浠跺煙<BR> public wenben(){<BR>  butExit = new Button();<BR>  add(butExit);<BR>  butExit.addActionListener(this);<BR>   setLayout(null);銆銆銆銆//璁劇疆鐣岄潰鐨勬牸寮?BR>  setBounds(35,35,280,250);<BR>  butExit.setBounds(50,200,180,20);<BR>  butExit.setLabel("紱誨紑");<BR>   text1 = new TextArea(" ",10,10);<BR>   text1.setBounds(40,50,100,100);<BR>    text2 = new TextArea(" ",10,10);<BR>   text2.setBounds(150,50,100,100);<BR>   add(text1);<BR>   text1.addTextListener(this);<BR>    add(text2);<BR>   text2.setEditable(false);<BR>   text2.addTextListener(this);<BR>    setVisible(true);<BR>}<BR>  public void actionPerformed(ActionEvent e){<BR>   System.exit(-1);<BR>  }<BR> public void textValueChanged(TextEvent e)<BR>  {<BR>   double averge = 0; //鍧囧?BR>   double result = 0;  // 鍜?BR>   int i = 0;<BR>   if(e.getSource()==text1)<BR>    {<BR>     String str = text1.getText();<BR>     StringTokenizer detect = new StringTokenizer(str); //stringtokenizer寰堢敤鐨勭被,瀵瑰瓧絎︾殑澶勭悊鍔熻兘寮哄ぇ<BR>     int n = detect.countTokens();<BR>     double[] dou = new double[n]; //涔熷彲鍒嗛厤涓闈欐佺殑鏁扮粍,榪欐牱涓嶇敤姣忔鍒嗛厤絀洪棿,浣嗘槸鏁扮粍鐨勯暱搴︾殑鍙樺寲緙哄皯鐏墊椿鎬?BR>     for(i = 0;i<n; i++)<BR>     {<BR>      String temp = detect.nextToken();<BR>      dou[i]=Double.valueOf(temp).doubleValue();<BR>      result = result+dou[i];<BR>     }<BR>     text2.setText(""+result+'\n'+(result/i));<BR>     }<BR>  }<BR>  public static void main(String[] args){<BR>   wenben wb = new wenben();<BR>  } <BR>}<img src ="http://www.aygfsteel.com/lee/aggbug/24311.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/lee/" target="_blank">lee</a> 2005-12-17 01:17 <a href="http://www.aygfsteel.com/lee/archive/2005/12/17/24311.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀵逛袱涓汲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>

lee 2005-12-13 13:19 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 时尚| 盐山县| 灵石县| 自贡市| 黔西县| 淮阳县| 阳原县| 巴里| 钟祥市| 皋兰县| 淮南市| 凤庆县| 乌拉特中旗| 乐平市| 沈丘县| 高青县| 涟源市| 韶关市| 平乐县| 新邵县| 宜黄县| 三明市| 开原市| 尉犁县| 阳原县| 泸州市| 本溪市| 华亭县| 宜昌市| 海伦市| 贡嘎县| 广德县| 麻阳| 莱芜市| 大埔区| 聊城市| 尉犁县| 四平市| 遂川县| 商河县| 双牌县|