Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈÃjava³ÌÐòÔÚÖ´Ðйý³ÌÖÐÔÝÍ£nÃëÖÓ. - Java / Web ¿ª·¢

ÎÒÐèÒªÔÚÒ»¸öforÑ­»·ÀïÃæÿѭ»·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ­»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл!
ÆÚ´ýºÃµÄ·½·¨£¡

ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË

ÏëÖªµÀ§Ö÷ΪºÎ²»ÏëÓÃThread.sleep(n)Õâ¸ö·½·¨£¬ÊÇÒòΪʹÓÃThread.sleep(n)ÓÐʲôȱÏÝ£¬»¹ÊÇ´¿´âÏëÓÃ×Ô¼ºµÄ´úÂë´úÌæÕâ¸ö¹¦ÄÜ

òËƺÃÏó´ó¸ÅÖ»ÓÐsleepÄÜ×ö¡£¡£

try{
  Thread thread = Thread.currentThread();
  thread.sleep(1500);//ÔÝÍ£1.5Ãëºó³ÌÐò¼ÌÐøÖ´ÐÐ
}catch (InterruptedException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
}

³ýÁË sleep ÎÒÒ²Ïë²»µ½Ê²Ã´ÁË£¬²ÑÀ¢

°®ÄªÄÜÖú

òËÆÖ»ÄÜÕâÑùÁË

ÎÒÒ²Ö»ÖªµÀsleep ÁË

Äã¿ÉÒÔÓÃËÀÑ­»·~~~~~~~~



»¹ÓÐÒ»¸ö·½·¨£¬µ«ÊǺͲÙ×÷ϵͳÓйأ¬¶øÇÒʱ¼äÒ²²»¿É¿Ø~~~¾ÍÊǵ÷ÕûÄãµ±ÏÈÏ̵߳ÄÓÅÏȼ¶

ÆäʵºÜ¶à°ì·¨ÄÜʵÏÖ×èÈûµ±Ç°Ị̈߳¬µ«ÊÇÒªÃüµÄÊÇÄãÒª¾«È·µÄ¿ØÖÆʱ¼ä¡£
ÕâÑùµÄ»°£¬¼´Ê¹ÊÇ×èÈûÁ˵±Ç°Ị̈߳¬ÄãÒ²±ØÐëÔÚ×èÈû´¦ÀíÖмÓÈëÂÖѯʱ¼äµÄ²Ù×÷¡£
Èç¹û²»ÓÃsleep£¬»úÆ÷¿ÉÄܽøÈë¼ÙËÀ״̬¡£

ÄãÊǵ÷ÊÔ³ÌÐòÂð£¿

µÈ´ýºÃ·½·¨

ÎÒÏëÓö¯Ì¬´úÀí£¬¿ÉÒÔÂð£¿


ÄãÏë½ÐËûÐÝÃߣ¬ÓÖ²»ÈÃÐÝÃß¡£¡£¸ãɶ¡£¡£

Äã¿ÉÒÔÔÚforÄÇÀïÉè¸ö¶Ïµã£¬È»ºódebugÏëÍ£¶à¾ÃÍ£¶à¾Ã£¬¹þ¹þ¡£

¿ªÍæЦµÄ°¡£¬³ýÁËsleepÎÒÒ²²»ÖªµÀ¡«¡«¡«

×öÒ»¸ötimer£¿ÄѵÀ²»±Èsleep¸ü·±Ëö£¿

»òÕß˵ÉÔ΢¸Ä±äÒ»ÏÂÄãµÄÒªÇó£º
ÿ¸ô15ÃëÖÓÑ­»·Ò»´Î£¿

°³Ò²Ö»ÖªµÀsleep

forÑ­»·°¡£¡Á½¸öforǶÌס£
{{----}


Ïà¹ØÎÊ´ð£º

javaÓï·¨ÎÊÌâ - Java / Java EE

import java.io.*;
class FileTest
{
public static void main(String [] args) throws Exception
{

File fDir=new File(File.separator);
String strFile="javaÔ´´úÂë²âÊÔ"+File.separato ......

java appletÔÚhtmlÖÐÎÞ·¨ÏÔʾ

ÎÒµÄjava applet ǶÈëhtmlºóÎÞ·¨ÏÔʾ£¬¶øÓÃappletviewerÏÔʾÕý³£ÎªÊ²Ã´£¬»¹ÓоÍÊÇÓÃhtml converterת»¯ºó¿ÉÒÔÏÔʾ£¬ÎªÊ²Ã´£¿Çë´óÏÀ´Í½Ì£¡
HTML code:

<HTML>
<HEAD>
<TITLE>TEST.HTML< ......

Çó職£¬java·½Ãæ - °¤ÌßÖ°ÑÄ / ²ÅÈëÖ°³¡

Ïë換個µØ·½¹¤×÷£¬²»ÊÇ´ó連¾ÍÐУ¬
java對ÈÕÍâ°ü4Äê經驗£¬ÈÕ語3級£¬±¾¿Æ
ÓÐÄÄλ´ó´ó給ÍÆÒ»個Ŷ
ÉϺ£±±¾©ºÜ¶àµÄ£¬È¥´³Ò»Ï°É

¶ÔÈյĻ¹ÐÐ.
ÄãÔõô² ......

Mysql ʹÓÃÎÊÌâ - Java / Web ¿ª·¢

ÎÒµÄMysql ʹÓõÄʱºò ÓÃdos½¨Á¢µÄÊý¾Ý±í ÔÚdosÖÐÄÜÏÔʾ³öÖÐÎÄ 
µ«ÊÇÔÚ ÆäËûµÄ¿ÉÊÓÒ³Ãæ ºÍÍøÒ³Öж¼ÏÔʾÂÒÂë ÈçºÎ½â¾ö£¿
ÔÚmysql¿ØÖÆ̨:show variables like 'char%';Ìù½á¹û³öÀ´¿´¿´¡£

mysqlÃüÁîÐÐģʽÏÂ: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ