锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲人成网站在线观看,亚洲一区精品中文字幕,国产亚洲精品免费视频播放http://m.tkk7.com/yemoo/category/12196.htmlJava鎶鏈慨鐐間腑...zh-cnFri, 02 Mar 2007 07:40:23 GMTFri, 02 Mar 2007 07:40:23 GMT60鏁扮粍瀵硅薄getChars()鏂規硶鐨勪嬌鐢?/title><link>http://m.tkk7.com/yemoo/archive/2006/07/12/57756.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Wed, 12 Jul 2006 02:41:00 GMT</pubDate><guid>http://m.tkk7.com/yemoo/archive/2006/07/12/57756.html</guid><wfw:comment>http://m.tkk7.com/yemoo/comments/57756.html</wfw:comment><comments>http://m.tkk7.com/yemoo/archive/2006/07/12/57756.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/yemoo/comments/commentRss/57756.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/yemoo/services/trackbacks/57756.html</trackback:ping><description><![CDATA[java鏁扮粍瀵硅薄鏈変竴涓緢閲嶈鐨勬柟娉昰etChars();鍏舵柟娉曟弿榪頒負:<br /><br />public void getChars(int srcBegin,int srcEnd,char dst[],int dstBegin);聽 灝嗗綋鍓嶅瓧絎︿覆鐨勯儴鍒嗗瓧絎﹀鍒跺埌鐩爣鑷礋鏁扮粍dst涓?浠巗rcBegin(鍖呭惈鍦ㄥ唴)鍒皊rcEnd(涓嶅寘鍚湪鍐?涔嬮棿鐨勫瓧絎﹀鍒跺埌鐩爣瀛楃鏁扮粍涓殑瀛楃浠巇stBegin浣嶇疆寮濮嬪瓨鏀?<br /><br />浣跨敤瀹炰緥:<br /><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">String聽ss</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Visual聽Basic</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000">聽dst[]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">{</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">a</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">b</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">c</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">d</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">};<br /><br />ss.getChars(</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">6</span><span style="COLOR: #000000">,dst,</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">);<br />System.out.println(dst);</span></div>杈撳嚭緇撴灉涓篴bal;<br /><br />娉ㄦ剰鏁扮粍鍙傛暟鍙鍐欏叆鏁扮粍鍚嶅嵆鍙?涓嶈甯],杈撳嚭鍙互鐩存帴鐢ㄦ暟緇勫悕杈撳嚭鍏ㄩ儴鍐呭.<img src ="http://m.tkk7.com/yemoo/aggbug/57756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-07-12 10:41 <a href="http://m.tkk7.com/yemoo/archive/2006/07/12/57756.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏍規嵁鐢ㄦ埛杈撳叆鍒ゆ柇鐧懼垎鍒舵垚緇╁搴旂瓑綰?/title><link>http://m.tkk7.com/yemoo/archive/2006/07/10/57414.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Sun, 09 Jul 2006 17:22:00 GMT</pubDate><guid>http://m.tkk7.com/yemoo/archive/2006/07/10/57414.html</guid><wfw:comment>http://m.tkk7.com/yemoo/comments/57414.html</wfw:comment><comments>http://m.tkk7.com/yemoo/archive/2006/07/10/57414.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/yemoo/comments/commentRss/57414.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/yemoo/services/trackbacks/57414.html</trackback:ping><description><![CDATA[ <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">import</span> <span style="COLOR: #000000">聽java.io.</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">;<br /><br /></span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽GradeLevel{<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[])聽</span> <span style="COLOR: #0000ff">throws</span> <span style="COLOR: #000000">聽IOException{<br />聽聽聽聽聽聽聽聽BufferedReader聽keyin</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽BufferedReader(</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽InputStreamReader(System.in));<br />聽聽聽聽聽聽聽聽String聽x;<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽y,n;<br />聽聽聽聽聽聽聽聽System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">璇瘋緭鍏ヤ竴涓垚緇?</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽x</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">keyin.readLine();聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">璇誨彇涓涓瓧絎︿覆</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽y</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Integer.parseInt(x);聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">灝嗚緭鍏ョ殑瀛楃涓瞲杞崲鎴愭暣鍨嬫暟鎹畒</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽n</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">(</span> <span style="COLOR: #000000">99</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">y)</span> <span style="COLOR: #000000">/</span> <span style="COLOR: #000000">10</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">switch</span> <span style="COLOR: #000000">(n){<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">case</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">:System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">A</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);</span> <span style="COLOR: #0000ff">break</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">case</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">2</span> <span style="COLOR: #000000">:System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">B</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);</span> <span style="COLOR: #0000ff">break</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">case</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">3</span> <span style="COLOR: #000000">:System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">C</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);</span> <span style="COLOR: #0000ff">break</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">case</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">4</span> <span style="COLOR: #000000">:System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">D</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);</span> <span style="COLOR: #0000ff">break</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">default</span> <span style="COLOR: #000000">:System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">涓嶅強鏍?/span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br />}</span> </div> <br />瑕佹敞鎰忎互涓嬩袱涓棶棰?<br />1,寤虹珛杈撳叆嫻佺殑綾誨悕:BufferedReader鑰屼笉鏄疊ufferReader,涓嶈灝戝啓浜唀d.鐒跺悗鍦˙ufferedReadereizhong寤虹珛InputStreamReader綾?鏈鍚庡彲浠ヨ皟鐢╯ystem.in鐨剅ealLine鏂規硶璇誨叆涓琛屾暟鎹?<br />2,灝嗙櫨鍒嗗埗杞崲鎴愪笌1.2.3.4涓庡叾浠栫瓑5縐嶆儏鍐電殑綆鍗曞叕寮?(99-y)/10+1;<img src ="http://m.tkk7.com/yemoo/aggbug/57414.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-07-10 01:22 <a href="http://m.tkk7.com/yemoo/archive/2006/07/10/57414.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒ゆ柇騫翠喚鏄惁闂板勾鐨勪竴涓猘pplet紼嬪簭http://m.tkk7.com/yemoo/archive/2006/07/09/57394.htmlYemoo'S Java BlogYemoo'S Java BlogSun, 09 Jul 2006 15:49:00 GMThttp://m.tkk7.com/yemoo/archive/2006/07/09/57394.htmlhttp://m.tkk7.com/yemoo/comments/57394.htmlhttp://m.tkk7.com/yemoo/archive/2006/07/09/57394.html#Feedback2http://m.tkk7.com/yemoo/comments/commentRss/57394.htmlhttp://m.tkk7.com/yemoo/services/trackbacks/57394.html
import聽java.applet.*;
import聽java.awt.*;
import聽java.awt.event.*;

publicclass聽LeapyearTest聽extends聽Applet聽implements聽ActionListener{
聽聽聽聽Label聽result;聽聽聽
//瀹氫箟涓涓緭鍑虹粨鏋滅殑鏍囩瀵硅薄
聽聽聽聽TextField聽t1;聽聽聽//瀹氫箟涓涓敤浜庤緭鍏ュ勾浠界殑鏂囨湰妗?/span>
聽聽聽聽Button聽btn;聽//瀹氫箟涓涓猙utton瀵硅薄
聽聽聽聽
聽聽聽聽
int聽year;
聽聽聽聽
boolean聽leap;
聽聽聽聽
聽聽聽聽
publicvoid聽init(){
聽聽聽聽聽聽聽聽result
=new聽Label("璇瘋緭鍏ヨ鍒ゆ柇鐨勫勾浠?");
聽聽聽聽聽聽聽聽t1
=new聽TextField(5);
聽聽聽聽聽聽聽聽btn
=new聽Button("鍒ゆ柇");
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽add(t1);
聽聽聽聽聽聽聽聽add(btn);
聽聽聽聽聽聽聽聽add(result);
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽btn.addActionListener(
this);聽聽聽聽//涓烘寜閽敞鍐屼簨浠?浜嬩歡鐨勭洃鍚呬負褰撳墠綾葷殑瀵硅薄this
聽聽聽聽}
聽聽聽聽
聽聽聽聽
publicvoid聽actionPerformed(ActionEvent聽e){
聽聽聽聽聽聽聽聽year
=Integer.parseInt(t1.getText());
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
if((year%4==0)&&(year%100!=0)){
聽聽聽聽聽聽聽聽聽聽聽聽leap
=true;
聽聽聽聽聽聽聽聽}
elseif(year%400==0){
聽聽聽聽聽聽聽聽聽聽聽聽leap
=true;
聽聽聽聽聽聽聽聽}
else{
聽聽聽聽聽聽聽聽聽聽聽聽leap
=false;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
if(leap==true){
聽聽聽聽聽聽聽聽聽聽聽聽result.setText(
"浣犺緭鍏ョ殑騫翠喚涓洪棸騫?");
聽聽聽聽聽聽聽聽}
else{
聽聽聽聽聽聽聽聽聽聽聽聽result.setText(
"浣犺緭鍏ョ殑騫翠喚涓嶆槸闂板勾!");
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽t1.setText(
"");
聽聽聽聽}
}

榪欓噷鏈夊嚑鐐歸渶瑕佽鏄庣殑:
1,applet紼嬪簭蹇呴』寮曞叆java.applet.*;
2,浣跨敤鏂囨湰妗?鎸夐挳絳夋帶浠墮渶瑕佸紩鍏ava.awt.*;
3,鏈変簨浠跺彂鐢熷垯瑕佸紩鍏ava.awt.event.*;
4,鍦ㄧ被鍚嶅悗鍔犱笂extends Applet Implements ActionListener
5,娣誨姞浜嬩歡鍚?褰撲簨浠惰嬋媧誨悗浼氳嚜鍔ㄨ皟鐢╝ctionPerformed鍑芥暟鎵ц.鍥犳搴旇涓轟簨浠跺啓璇ュ嚱鏁?

Yemoo'S Java Blog 2006-07-09 23:49 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久国产精品免费看| 亚洲欧美成人av在线观看| 久久国产免费直播| 久久精品夜色噜噜亚洲A∨| 日本免费精品一区二区三区| 免费v片视频在线观看视频| 亚洲aⅴ无码专区在线观看| 国产免费爽爽视频免费可以看| www亚洲精品久久久乳| 免费a级毛片网站| 国产福利免费视频| 亚洲av无码专区在线播放| 免费精品一区二区三区第35| 亚洲国产成人久久综合碰碰动漫3d| 18禁止看的免费污网站| 亚洲成a人片在线观看精品| 女人被男人桶得好爽免费视频| 国产精品国产亚洲区艳妇糸列短篇| 免费一级黄色毛片| 你懂得的在线观看免费视频| 久久久久亚洲av无码专区喷水| 国产成在线观看免费视频| 精品亚洲国产成人av| 午夜国产羞羞视频免费网站| 久久精品无码专区免费| 久久亚洲熟女cc98cm| 免费看的黄色大片| 两性色午夜视频免费播放| 亚洲精品熟女国产| 国产传媒在线观看视频免费观看 | 久久香蕉国产线看免费| 亚洲av乱码一区二区三区香蕉| 日韩一区二区在线免费观看| a毛片免费观看完整| 亚洲综合偷自成人网第页色| 亚洲欧洲日本在线| 精品国产免费人成电影在线观看 | 成人免费视频88| 三年片免费观看大全国语| 亚洲一区二区三区久久久久| 亚洲日本va午夜中文字幕久久|