锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲人成网站在线观看,亚洲一区精品中文字幕,国产亚洲精品免费视频播放http://www.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://www.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://www.tkk7.com/yemoo/archive/2006/07/12/57756.html</guid><wfw:comment>http://www.tkk7.com/yemoo/comments/57756.html</wfw:comment><comments>http://www.tkk7.com/yemoo/archive/2006/07/12/57756.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yemoo/comments/commentRss/57756.html</wfw:commentRss><trackback:ping>http://www.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://www.tkk7.com/yemoo/aggbug/57756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-07-12 10:41 <a href="http://www.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://www.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://www.tkk7.com/yemoo/archive/2006/07/10/57414.html</guid><wfw:comment>http://www.tkk7.com/yemoo/comments/57414.html</wfw:comment><comments>http://www.tkk7.com/yemoo/archive/2006/07/10/57414.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yemoo/comments/commentRss/57414.html</wfw:commentRss><trackback:ping>http://www.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://www.tkk7.com/yemoo/aggbug/57414.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-07-10 01:22 <a href="http://www.tkk7.com/yemoo/archive/2006/07/10/57414.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒ゆ柇騫翠喚鏄惁闂板勾鐨勪竴涓猘pplet紼嬪簭http://www.tkk7.com/yemoo/archive/2006/07/09/57394.htmlYemoo'S Java BlogYemoo'S Java BlogSun, 09 Jul 2006 15:49:00 GMThttp://www.tkk7.com/yemoo/archive/2006/07/09/57394.htmlhttp://www.tkk7.com/yemoo/comments/57394.htmlhttp://www.tkk7.com/yemoo/archive/2006/07/09/57394.html#Feedback2http://www.tkk7.com/yemoo/comments/commentRss/57394.htmlhttp://www.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一免费爽爽| 日韩亚洲AV无码一区二区不卡| 免费v片在线观看视频网站| 国产精品亚洲精品爽爽| 亚洲国产日韩一区高清在线| 夜夜爽免费888视频| 中文字幕无线码免费人妻| 亚洲一区二区三区久久| 亚洲国产婷婷综合在线精品| 美丽的姑娘免费观看在线播放 | 最近2019免费中文字幕6| 337P日本欧洲亚洲大胆艺术图| 亚洲深深色噜噜狠狠爱网站| 美女被免费喷白浆视频| 久久不见久久见免费影院www日本| 亚洲免费在线视频播放| 国产亚洲精品久久久久秋霞| 国产精品成人免费一区二区 | 日本成人免费在线| 男女午夜24式免费视频| 国产成人亚洲精品无码AV大片| 国产A在亚洲线播放| 午夜国产大片免费观看| 99久久99这里只有免费费精品| eeuss影院www天堂免费| 亚洲一日韩欧美中文字幕在线| 久久久久亚洲精品天堂久久久久久 | 无码国产精品一区二区免费式影视| 色爽黄1000部免费软件下载| 亚洲午夜国产精品| 亚洲av无码无在线观看红杏| 国产一级高清视频免费看| 国产h视频在线观看免费| 美女被cao网站免费看在线看| 免费无遮挡无遮羞在线看| 亚洲一日韩欧美中文字幕在线| 亚洲视频在线观看网站| 国产亚洲一区二区三区在线观看 | 免费视频淫片aa毛片|