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

JavaỊ̈߳ºÏß³Ì״̬µÄת»»

JavaỊ̈߳ºÏß³Ì״̬µÄת»»
 
SCJP5ѧϰ±Ê¼Ç
 
Ò»¡¢Ïß³Ì״̬
 
Ï̵߳Ä״̬ת»»ÊÇÏ߳̿ØÖƵĻù´¡¡£Ïß³Ì״̬×ܵĿɷÖΪÎå´ó״̬£º·Ö±ðÊÇÉú¡¢ËÀ¡¢¿ÉÔËÐС¢ÔËÐС¢µÈ´ý/×èÈû¡£ÓÃÒ»¸öͼÀ´ÃèÊöÈçÏ£º
 
1¡¢ÐÂ״̬£ºÏ̶߳ÔÏóÒѾ­´´½¨£¬»¹Ã»ÓÐÔÚÆäÉϵ÷ÓÃstart()·½·¨¡£
 
2¡¢¿ÉÔËÐÐ״̬£ºµ±Ïß³ÌÓÐ×ʸñÔËÐУ¬µ«µ÷¶È³ÌÐò»¹Ã»ÓаÑËüÑ¡¶¨ÎªÔËÐÐÏß³ÌʱÏß³ÌËù´¦µÄ״̬¡£µ±start()·½·¨µ÷ÓÃʱ£¬Ïß³ÌÊ×ÏȽøÈë¿ÉÔËÐÐ״̬¡£ÔÚÏß³ÌÔËÐÐÖ®ºó»òÕß´Ó×èÈû¡¢µÈ´ý»ò˯Ãß״̬»ØÀ´ºó£¬Ò²·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
3¡¢ÔËÐÐ״̬£ºÏ̵߳÷¶È³ÌÐò´Ó¿ÉÔËÐгØÖÐÑ¡ÔñÒ»¸öÏß³Ì×÷Ϊµ±Ç°Ïß³ÌʱÏß³ÌËù´¦µÄ״̬¡£ÕâÒ²ÊÇÏ߳̽øÈëÔËÐÐ״̬µÄΨһһÖÖ·½Ê½¡£
 
4¡¢µÈ´ý/×èÈû/˯Ãß״̬£ºÕâÊÇÏß³ÌÓÐ×ʸñÔËÐÐʱËüËù´¦µÄ״̬¡£Êµ¼ÊÉÏÕâ¸öÈý״̬×éºÏΪһÖÖ£¬Æ乲ͬµãÊÇ£ºÏß³ÌÈÔ¾ÉÊÇ»îµÄ£¬µ«Êǵ±Ç°Ã»ÓÐÌõ¼þÔËÐС£»»¾ä»°Ëµ£¬ËüÊÇ¿ÉÔËÐеģ¬µ«ÊÇÈç¹ûij¼þʼþ³öÏÖ£¬Ëû¿ÉÄÜ·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
5¡¢ËÀÍö̬£ºµ±Ï̵߳Ärun()·½·¨Íê³Éʱ¾ÍÈÏΪËüËÀÈ¥¡£Õâ¸öÏ̶߳ÔÏóÒ²ÐíÊÇ»îµÄ£¬µ«ÊÇ£¬ËüÒѾ­²»ÊÇÒ»¸öµ¥¶ÀÖ´ÐеÄÏ̡߳£Ïß³ÌÒ»µ©ËÀÍö£¬¾Í²»Äܸ´Éú¡£ Èç¹ûÔÚÒ»¸öËÀÈ¥µÄÏß³ÌÉϵ÷ÓÃstart()·½·¨£¬»áÅ׳öjava.lang.IllegalThreadStateExceptionÒì³£¡£
 
ÓйØÏêϸ״̬ת»»Í¼¿ÉÒԲο´±¾È˵ēJava¶àÏ̱߳à³Ì×ܽá”ÖеÄͼ
 
¶þ¡¢×èÖ¹Ïß³ÌÖ´ÐÐ
¶ÔÓÚÏ̵߳Ä×èÖ¹£¬¿¼ÂÇÒ»ÏÂÈý¸ö·½Ã棬²»¿¼ÂÇIO×èÈûµÄÇé¿ö£º
˯Ãߣ»
µÈ´ý£»
ÒòΪÐèÒªÒ»¸ö¶ÔÏóµÄËø¶¨¶ø±»×èÈû¡£
 
1¡¢Ë¯Ãß
Thread.sleep(long millis)ºÍThread.sleep(long millis, int nanos)¾²Ì¬·½·¨Ç¿ÖƵ±Ç°ÕýÔÚÖ´ÐеÄÏß³ÌÐÝÃߣ¨ÔÝÍ£Ö´ÐУ©£¬ÒÔ“¼õÂýÏ߳̔¡£µ±Ïß³Ì˯Ãßʱ£¬ËüÈë˯ÔÚij¸öµØ·½£¬ÔÚËÕÐÑ֮ǰ²»»á·µ»Øµ½¿ÉÔËÐÐ״̬¡£µ±Ë¯Ãßʱ¼äµ½ÆÚ£¬Ôò·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
Ïß³Ì˯ÃßµÄÔ­Òò£ºÏß³ÌÖ´ÐÐÌ«¿ì£¬»òÕßÐèҪǿÖƽøÈëÏÂÒ»ÂÖ£¬ÒòΪJava¹æ·¶²»±£Ö¤ºÏÀíµÄÂÖ»»¡£
 
˯ÃßµÄʵÏÖ£ºµ÷Óþ²Ì¬·½·¨¡£
        try {
            Thread.sleep(123);
        } catch (InterruptedException e) {
            e.printStackTrace(); 
      &nb


Ïà¹ØÎĵµ£º

²»´íµÄ¾­µäÎÄÕ£ºjavaÌáËÙ

JavaÓïÑÔÌرðÇ¿µ÷׼ȷÐÔ£¬µ«¿É¿¿µÄÐÐΪҪÒÔÐÔÄÜ×÷Ϊ´ú¼Û¡£ÕâÒ»Ìص㷴ӳÔÚ×Ô¶¯ÊÕ¼¯À¬»ø¡¢ÑϸñµÄÔËÐÐÆÚ¼ì²é¡¢ÍêÕûµÄ×Ö½ÚÂë¼ì²éÒÔ¼°±£ÊصÄÔËÐÐÆÚͬ²½µÈµÈ·½Ãæ¡£¶ÔÒ»¸ö½âÊÍÐ͵ÄÐéÄâ»úÀ´Ëµ£¬ÓÉÓÚÄ¿Ç°ÓдóÁ¿Æ½Ì¨¿É¹©ÌôÑ¡£¬ËùÒÔ½øÒ»²½×è°­ÁËÐÔÄܵķ¢»Ó¡£
“ÏÈ×öÍêËü£¬ÔÙÖð²½ÍêÉÆ¡£ÐÒºÃÐèÒª¸Ä½øµÄµØ·½Í¨³£²»»áÌ«¶à¡£”£¨ ......

javaº¯ÊýµÄ²ÎÊý´«µÝºÍStringÀàÐÍ

ÒÔÏÂÄÚÈÝÕª×Ôjavaº¯ÊýµÄ²ÎÊý´«µÝºÍStringÀàÐÍ http://www.blogjava.net/thuixy/archive/2009/06/06/280302.html
˵ÍêÁËjavaµÄStringÀàÐÍ£¬ÎÒÃÇ×îºó¿´¿´javaº¯Êý²ÎÊýµÄ´«µÝ£¬µ½µ×ÊÇÖµ´«µÝ»¹ÊÇÒýÓô«µÝÄØ£¿Ò»°ãµÄ˵·¨ÊǶÔÓÚ»ù±¾ÀàÐͱÈÈçint¡¢charÊÇÖµ´«µÝ£¬¶ÔÓÚ¶ÔÏóÀàÐÍÊÇÒýÓô«µÝ¡£ÕâÖÖ˵·¨Ã»´í£¬µ«ÊÇÇë¿´ÏÂÃæµÄÀý×Ó£º
Str ......

java ¼¸ÖÖÅÅÐòËã·¨


//ÅÅÐòºÍ²éÕÒÊÇÊý¾Ý½á¹¹ÓëËã·¨Éè¼ÆµÄÖØÒªÄÚÈÝ
/*
ÅÅÐòÖ÷Òª°üÀ¨
1.²åÈëÅÅÐò£ºÓÖ°üÀ¨Ö±½Ó²åÈëÅÅÐò¡¢¶þ·Ö·¨²åÈëÅÅÐò¡¢±í²åÈëÅÅÐò¡¢ShellÅÅÐò
2.Ñ¡ÔñÅÅÐò£º°üÀ¨Ö±½ÓÑ¡ÔñÅÅÐò¡¢¶ÑÅÅÐò
3.½»»»ÅÅÐò£ºÃ°ÅÝÅÅÐò¡¢¿ìËÙÅÅÐò
4.·ÖÅäÅÅÐò£ºÖ÷ÒªÓлùÊýÅÅÐò
5.¹é²¢ÅÅÐò£ºÖ÷ÒªÓÐÄÚÅÅÐò¡¢ÍâÅÅÐò
×¢£ºÒÔϳÌÐò¾ùÔÚ±¾È˵çÄÔÉÏͨ¹ýÍêÕ ......

javaʹÓÃPOI²Ù×÷Excel±¨±í

HSSFWorkbook API£ºhttp://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFWorkbook.html
office°ì¹«Èí¼þµÄʹÓÃʹµÃ¿ª·¢ÆóÒµ°ì¹«ÏµÍ³ÖУ¬³£³£Óпͻ§ÕâÑù×ÓÒªÇó£ºÄãÒª°ÑÎÒÃǵı¨±íÖ±½ÓÓÃExcel´ò¿ª¡£»òÕßÊÇ£ºÎÒÃÇÒѾ­Ï°¹ßÓÃExcel´òÓ¡¡£ÕâÑù×ÓÈç¹ûÓÃ.net¿ª·¢ÊÇûÓÐÎÊÌâµÄ£¬µ«ÊÇÓÐj2eeÕâ¸ö±È.net¸üÓÐǰ;µÄ¿ª·Åʽµ ......

JavaỊ̈߳º¸ÅÄîÓëÔ­Àí


JavaỊ̈߳º¸ÅÄîÓëÔ­Àí
 
SCJP5ѧϰ±Ê¼Ç
 
Ò»¡¢²Ù×÷ϵͳÖÐÏ̺߳ͽø³ÌµÄ¸ÅÄî
ÏÖÔڵIJÙ×÷ϵͳÊǶàÈÎÎñ²Ù×÷ϵͳ¡£¶àÏß³ÌÊÇʵÏÖ¶àÈÎÎñµÄÒ»ÖÖ·½Ê½¡£
½ø³ÌÊÇÖ¸Ò»¸öÄÚ´æÖÐÔËÐеÄÓ¦ÓóÌÐò£¬Ã¿¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÒ»¿éÄÚ´æ¿Õ¼ä£¬Ò»¸ö½ø³ÌÖпÉÒÔÆô¶¯¶à¸öÏ̡߳£±ÈÈçÔÚWindowsϵͳÖУ¬Ò»¸öÔËÐеÄexe¾ÍÊÇÒ»¸ö½ø³Ì¡£
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ