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

Java_Ïß³Ì×ܽá

 ×ªÖÁ£ºhttp://sllereak.blog.163.com/blog
--ʲôÊÇÏß³Ì
 *Ïß³ÌÊÇÒ»¸ö³ÌÐòÀïÃ治ͬµÄÖ´Ðз¾¶
 *³ÌÐòÖ´ÐÐÔÚͬһʱ¼äÀïÃ棬ÿһ¸öÖ´ÐеķÖÖ§¾ÍÊÇÒ»¸öÏß³Ì
 *Ò»¸ö³ÌÐòµÄMain()·½·¨ÖеÄÖ´ÐÐÏß·³ÆΪ³ÌÐòµÄÖ÷Ïß³Ì
--½ø³ÌºÍÏß³Ì
 *½ø³ÌÊÇÒ»¸ö¾²Ì¬µÄ¸ÅÄµ±´úÂë±»javaÐéÄâ»ú¼ÓÔص½code segmentÖУ¬Õâ¸ö½ø³ÌµÄÉúÃüÖÜÆھͿªÊ¼ÁË
 *½ø³ÌÊDz»ÄÜÖ´Ðеģ¬µ«ÊǾ­³£»á˵½ø³ÌÖ´ÐÐʵ¼ÊÉÏÊÇÖ¸Ò»¸ö½ø³ÌÖеÄÖ÷Ï̵߳ÄÖ´ÐУ¬Ò²¾ÍÊÇÒ»¸ö³ÌÐòµÄMain()·½·¨ÖеĽø³Ì¿ªÊ¼Ö´ÐÐ
 *½ø³ÌÊÇÒ»¸ö¾²Ì¬µÄ¸ÅÄÔÚ»úÆ÷ÉϵÄcpuÖÐʵ¼ÊÉÏÔËÐеĶ¼ÊÇỊ̈߳¬×¢ÒâÀíÇåÒÔÇ°µÄÕâÒ»¸öÎóÇø
 *windowsÊǶà½ø³Ì¶àÏ̵߳ģ¬Doc²Ù×÷ϵͳÊǵ¥½ø³Ìµ±È»Ò²¾ÍÊǵ¥Ï̵߳ÄÁË
 *¶àÏß³Ì×îºÃÒÔ·ÖÖ§À´Çø·ÖºÃЩ£¬ÒòΪʵ¼ÊÉÏÔÚµ¥cpuÔÚÒ»¸öʱ¼äµãÉÏÖ»ÊÇ´¦Àíµ¥¸öỊ̈߳¬Ö»²»¹ýʱ¼äƬµÄ¶«Î÷ÆÛÆ­ÁËÈ˵ÄÑÛ¾¦¶øÒÑ£¬µ«ÊÇË«ºË¾ÍÊÇÔÚͬһʱ¼äµãÉÏÖ´Ðжà¸öÏ߳̿©
 *ÿһ¸ö½ø³Ì¶¼»áÔÚcode segmentÖÐÓÐÒ»·Ýµ¥¶ÀµÄ½ø³ÌÉÏÏÂÎÄ£¬ËùÒÔ½ø³ÌÖ®¼äµÄÇл»»áÓкܴóµÄ¿ªÏú
 *¶øͬһ¸ö³ÌÐòµÄ¶à¸öÏ̹߳²Ïí´úÂëÇøºÍÊý¾Ý¿Õ¼ä£¬ËùÒÔÏß³ÌÖ®¼äµÄÇл»¿ªÏúС
 *¶à½ø³Ì£ºÍ¬Ò»¸öʱ¼äÔÚ²Ù×÷ϵͳÉÏÔËÐжà¸öÈÎÎñ£¨ÈÎÎñ¹ÜÀíÆ÷£©
 *¶àỊ̈߳ºÍ¬Ò»¸öÓ¦ÓóÌÐòÔÚͬһ¸öʱ¼äÖ´Ðжà¸ö·Ö֧·¾¶
--ÔõÑùʵÏÖÏß³Ì
 *·½·¨Ò»£ºÖ±½ÓʵÏÖRunable½Ó¿Ú£¬ÊµÏÖÀïÃæµÄrun()·½·¨£¬È»ºó½«ÊµÏÖÀà×÷Ϊ¹¹Ô캯Êý´«Èëµ½ThreadµÄ¹¹Ô캯ÊýÖд´½¨ÐµÄThreadÀ࣬µ÷ÓÃËüµÄstart()·½·¨£¬¿ªÊ¼Ö´ÐÐÏß³Ì
 *·½·¨¶þ£º¼Ì³Ð×ÔThreadÀ࣬ʵÏÖrun()·½·¨£¬È»ºóÖ±½Óµ÷ÓÃÆästart()·½·¨¿ªÊ¼Ö´ÐÐÏß³Ì
 *Ö»Óе÷ÓÃThreadÀàµÄstart()·½·¨¿ªÄÜ¿ªÆôÒ»¸öỊ̈߳¬¿ªÆôÏ̺߳ó×Ô¶¯µ÷ÓÃrun()·½·¨£¬Ö±½Óµ÷ÓÃrun()·½·¨Êµ¼ÊÉÏÖ»ÊÇ·½·¨µÄµ÷Ó㬲»»á¿ªÆôеÄỊ̈߳¬Ö»ÓÐstart()·½·¨²ÅÄÜ֪ͨcpu¿ªÆôеÄÏß³Ì
--Ï̵߳Ä×èÈû
 *Çé¿öÒ»CPU¸øÄã·ÖÅäµÄʱ¼äƬÍêÁË
 *Çé¿ö¶þÆäËûÇé¿öµ¼ÖÂ×èÈû£¬±ÈÈçsleep()·½·¨
--Ï̵߳ĿØÖÆ
 Ê×ÏÈÒªÖªµÀÏ̵߳ļ¸ÖÖ״̬£¬¡¾´´½¨new¡¿¡¾¾ÍÐ÷start¡¿¡¾ÔËÐÐrun¡¿¡¾×èÈûsleep¡¿¡¾ËÀÍönull¡¿
 *Ïß³ÌʵÀý.isAlive()Ïß³ÌÊDz»ÊÇ»òÕߣ¬µ±Ïß³ÌʵÀýÊôÓÚ¡¾¾ÍÐ÷¡¿¡¾ÔËÐС¿¡¾×èÈû¡¿ÈýÕßÖ®Ò»¶¼ÊÇ»î×ŵÄ
 *Ïß³ÌʵÀý.getPriority()--È¡µÃÏ̵߳ÄÓÅÏȼ¶,Ïß³ÌʵÀý.setPriority(long i)--ÉèÖÃÏ̵߳ÄÓÅÏȼ¶
 *Thread.sleep(long time)·½·¨£¬ÈÃ"µ±Ç°"¡¾ÒòΪÊǾ²Ì¬·½·¨Âï¡¿ÕýÔÚÔËÐеÄÏß³


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

java ¼¯ºÏÀà

1.1.1.     ¼¯ºÏ¿ò¼ÜÖеĽӿÚ
Ëùν¿ò¼Ü¾ÍÊÇÒ»¸öÀà¿âµÄ¼¯ºÏ¡£¼¯ºÏ¿ò¼Ü¾ÍÊÇÒ»¸öÓÃÀ´±íʾºÍ²Ù×÷¼¯ºÏµÄͳһµÄ¼Ü¹¹£¬°üº¬ÁËʵÏÖ¼¯ºÏµÄ½Ó¿ÚÓëÀà¡£
*        Collection£º¼¯ºÏ²ã´ÎÖеĸù½Ó¿Ú£¬JDKûÓÐÌṩÕâ¸ö½Ó¿ÚÖ±½ÓµÄʵÏÖÀà¡£
*        Se ......

ÈçºÎÀûÓÃjavaµÃµ½µ±Ç°µÄʱ¼äºÍÇ°Ò»ÌìµÄʱ¼ä

 1.µÃµ½µ±Ç°µÄʱ¼ä
Calendar cal = Calendar.getInstance();
String time=formatter.format(cal.getTime());
String strEnd=time.substring(0, 16);// 2007-10-30 09:30
2.µÃµ½Ç°Ò»ÌìµÄʱ¼ä
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH, -1);
SimpleDateFormat ......

Java»ù´¡Óï·¨×ܽá

תÖÁ£ºhttp://sllereak.blog.163.com/blog
 --JDK--Ò²½ÐJ2SDK--Java2-Software-Development_kit--¿ª·¢¹¤¾ß(²¢ÇÒJDK±¾Ê¾Ͱüº¬ÁËJRE)
--JRE-----JAVA_Runtime_Environment--ÔËÐÐʱ»·¾³
--Èç¹ûÖ»ÊÇÔËÐÐJAVA³ÌÐò¶ø²»×÷Ϊ¿ª·¢ÔòÖ»ÐèÒªJRE¾Í¿ÉÒÔÁË
--j2se--java2_standard_edition
--j2me--java2_mobile_edition
--j2 ......

JavaÊý×é×ܽá

תÖÁ£ºhttp://sllereak.blog.163.com/blog
 --javaÀïÃæµÄÊý×é²»ÄÜÕâÑùдint a[5];
 *ΪʲôÄØ£¿Èç¹ûÕâÑùдµÄ»°Ò»°ãÇé¿öÏ»ὫÎå¸öÄÚ´æ¿Õ¼ä·ÖÅäµ½Õ»ÉÏ£¬µ«ÊÇjavaµÄÊý¾ÝÊÇ·ÅÔÚ¶ÑÉϵģ¬Õ»ÉÏÖ»ÄÜ·ÖÅäÒ»¸öÖ¸ÕëµØÖ·¶øÒÑ
 *Êý×éµÄÉñÃ÷ÓÐÁ½ÖÖ·½Ê½int[] a;»òÕßint a[];
--Êý¾ÝµÄÎÊÌâ
 ·½·¨ÖÐint[] a=new in ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ