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

JavaÏß³ÌʹÓÃ

¹ØÓÚÏß³ÌÊÇJavaÓïÑÔÖкÜÖØÒªµÄÒ»¿é£¬ÔÚ³ÌÐòÖÐÓкܶàµØ·½Ò²Ê¹ÓÃÏ̡߳£µ«ÊÇÕæÕý¿¼ÂÇÈçºÎÔÚÊʺϵij¡ºÏʹÓÃÏß³ÌÄØ£¿²ÉÓÃÏß³Ì×îÃ÷ÏԵľÍÊÇÓÃÓÚÒì²½²Ù×÷´¦Àí¡£ÄÇôΪºÎҪʹÓÃÒì²½·½Ê½ÄØ£¿
ÏÈÀ´½éÉÜÏÂΪʲôÓÐÁ˽ø³Ì£¬»¹ÐèÒªÏ̡߳£
µÚÒ»£º²¢ÐÐʵÌå¹²Ïíͬһ¸öµØÖ·¿Õ¼äºÍËùÓпÉÓÃÊý¾ÝµÄÄÜÁ¦¡£
µÚ¶þ£ºÏ̱߳Ƚø³Ì¸üÇáÁ¿¼¶£¬±È½ø³Ì¸üÈÝÒ×´´½¨£¬Ò²¸üÈÝÒ׳·Ïú¡£
µÚÈý£ºÖ÷ÒªÊÇÉæ¼°ÐÔÄÜ·½Ãæ¡£
¹ØÓÚÐÔÄÜÓÖÉæ¼°µ½Ï̵߳ÄÐÐΪ£¬¼¸ºõËùÓеÄÏß³ÌI/O»î¶¯»ò¼ÆË㶼Êǽ»ÌæÍ»·¢µÄ£¨¶Ô½ø³Ì¶øÑÔÒ²ÊÇÀàËÆ£©¡£ÕâÀïËù˵µÄI/O»î¶¯²»ÊÇÒ»°ãµÄ´ÅÅ̶Áд´¦Àí£¬¶øÊǵ±Ò»¸öÏ̵߳ȴýÍⲿÉ豸Íê³É¹¤×÷¶ø±»×èÈûʱ£¬²ÅÊÇI/O»î¶¯¡£ÕâÀïҪעÒ⣬ijЩI/O»î¶¯¿ÉÒÔ¿´×÷ÊǼÆË㣬ÀýÈ磬µ±CPUÏòÊÓƵRAM¸´ÖÆÊý¾ÝÒÔ¸üÐÂÆÁĻʱ£¬ÒòΪʹÓÃÁËCPU£¬ËùÒÔÕâÊǼÆË㣬¶ø²»ÊÇI/O»î¶¯¡£
Ò»°ã»¨·ÑÁ˾ø´ó¶àÊýʱ¼äÔÚ¼ÆËãÉÏÃæ½Ð¼ÆËãÃܼ¯ÐÍ£¨Ò²½ÐCPUÃܼ¯ÐÍ£©£¬Ò»°ãÔڵȴýI/OÉÏ»¨·ÑÁ˾ø´ó¶àÊýʱ¼ä½ÐI/OÃܼ¯ÐÍ¡£Èô¶à¸öÏ̶߳¼ÊÇCPUÃܼ¯Ð͵ģ¬ÄÇô²¢²»ÄÜ»ñµÃÐÔÄÜÉϵÄÔöÇ¿£¬µ«ÊÇÈç¹û´æÔÚ×Å´óÁ¿µÄ¼ÆËãºÍ´óÁ¿µÄI/O´¦Àí£¬ÓµÓжà¸öÏß³ÌÔÊÐíÕâЩ»î¶¯±Ë´ËÖصþ½øÐУ¬ÄÇô»á¼Ó¿ìÓ¦ÓóÌÐòµÄÖ´ÐÐËٶȡ£
ÁíÍâ´ÓJVM½Ç¶È³ö·¢£¬Ï̵߳ÄÇл»Ò²ÊÇÒª»¨´ú¼ÛµÄ£¬¶øÇÒÏ̵߳ÄÓÅÏȼ¶²¢²»ÊÇÌرðÓÐЧ£¨ÏñwindowsºÍliunxµÄÏß³ÌÓÅÏȼ¶ÓкܶàµÈ¼¶£©¡£JavaÏ̵߳ĵ÷¶È»¹ÊÇÐèÒªÈ˹¤¿ØÖÆ£¬²»È»ÔÚ²¢·¢¸ß·åʱ£¬»¹ÊÇ»á³öÏÖ²¿·ÖÏß³ÌÇÀÕ¼²»µ½CPU£¬¶ø²»ÄÜÔËÐС£
Ëæ×ŶàºËµÄµ½À´£¬¶àÏß³ÌÒ²¸üÊʺϽøÐÐCPUÃܼ¯Ð͵Ĵ¦Àí£¬´ò¸ö±È·½£¬ÓÃÒ»¸öÏß³ÌÀ´¼ÆËãһϵÁÐÊý×é[1,3,4,52,343,32,6,……,4]µÄ×î´óÖµ£¬»¹ÊÇÓöà¸öÏß³ÌÀ´¼ÆË㡣˭µÄËٶȿ죬²»µÃ¶øÖª£¨´ó¼ÒÒ²¿É²âÊÔÏ£©¡£²»¹ý¾ØÕóÔËËã»òÕß¿Æѧ¼ÆËãʱ£¬¶àºËÊDZȽϾßÓÐÓÅÊÆ¡£
×ÜÖ®Ïß³ÌÊÇÒ»¸ö±È½Ï¸´ÔӵĸÅÄÉ漰ͨÐÅ¡¢Ëø¡¢µ÷¶È¡¢¶àÏß³ÌÉè¼Æģʽ¼¸¸ö·½Ã棬ÕâЩ֪ʶҲºÜÖØÒª£¨ÒÔºó»áÔÚ²©¿ÍÀïÌáµ½£©¡£
×îºó¶îÍâ˵Ͻø³ÌÓë³ÌÐòµÄÇø±ð£¬ËäÈ»ºÜ΢Ãµ«·Ç³£ÖØÒª¡£ÓÃÒ»¸ö±ÈÓ÷¿ÉÒÔʹÎÒÃǸüÈÝÒ×Àí½âÕâµã¡£¼ÙÉèÒ»¸ö³øʦÕýÔÚ×öÉúÈÕµ°¸â¡£ËûÓÐ×öÉúÈÕµ°¸âµÄʳÆ×£¬ËùÐèÒªµÄÔ­ÁÏ£ºÃæ·Û¡¢¼¦µ°¡¢Ìǵȡ£×öµ°¸âµÄʳÆ×¾ÍÊdzÌÐò£¬³øʦ¾ÍÊÇ´¦ÀíÆ÷£¨CPU£©£¬¶ø×÷µ°¸âµÄ¸÷ÖÖÔ­ÁϾÍÊÇÊäÈëÊý¾Ý¡£½ø³Ì¾ÍÊdzøʦÔĶÁʳÆס¢È¡À´¸÷ÖÖÔ­Áϼ°ºæÖƵ°¸âµÈһϵÁж¯×÷µÄ×ܺ͡£


Ïà¹ØÎĵµ£º

JAVAÖеÄArray.sort£¨£©·½·¨

»¨Á˵ãʱ¼äÈ¥Ñо¿£¬Ò²ËãСÓÐÊÕ»ñ£º
Arrays.sort()·½·¨ÔÚJDKÀïÓкܶ࣬ÆäÖÐ×ÅÖØ˵ÏÂ
static void
sort(Object[] a)
static
<T> void
sort(T[] a, Comparator<? super T> c)
Ç°Õß²ÎÊýÖеÄÊý×éaÖеÄËùÓÐÔªËرØÐëʵÏÖcomparable½Ó¿Ú£¬¿ÉÒÔÖØÔØcomparableµÄ·½·¨compareTo£¨£©¡£
ºóÕß² ......

launch4j Óë inno setup ´ò°üjava×ÀÃæÓ¦ÓóÌÐò

      ×î½üÔÚ×öÒ»¸ö¶Ôjava×ÀÃæÓ¦ÓóÌÐòÏîÄ¿£¬ÐèÒª´ò°ü³ÉͬÆÕͨµÄ¶þ½øÖÆÓ¦ÓóÌÐòÒ»Ñù¡£
      [1]ʹÓÃeclipse ½«Õû¸öÏîÄ¿´ò°ü³É¿ÉÔËÐеÄjarÎļþ£¬ÔÚÓ¦Óùý³ÌÖз¢ÏÖ×ÊÔ´ÎļþÈç¹û²»ÊÇͨ¹ýinputstreamÀ´¶ÁÈ¡µÄ»°£¬ÊÇÎÞ·¨·ÃÎʵ½µÄ£¬ÔÚ×öÏîĿʱûÓп¼Âǵ½Õâµã£¬ËùÒÔ×îºóÖ»ºÃ° ......

java µÄ×Ô´ø¼¸ÖÖƤ·ôµÄÀàÃû

javax.swing.plaf.metal.MetalLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.mac.MacLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel //java6ÐÂƤ·ô£¬²£Á§Í¸Ã÷
ÎÒµÄ×ÊÔ´ÖÐÓÐÏà¹Ø java swing ·½ÃæµÄ½Ì³Ì£¬j ......

¹ØÓÚÓÃJava³ÌÐòʵÏÖ8421ÂëȨÏÞ¹ÜÀí µÚÈý²¿·Ö

·ÖÅäÒ³ÃæRole_Right.jspÔ­Â룺
<%@ page language="java" isELIgnored="false" pageEncoding="GBK" errorPage="/inc/exception.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
 <title>½ÇÉ«·ÖÅäȨÏÞ</title>
 <!--Áбí--& ......

JavaÏ̵߳Äͬ²½

ÔÚJ2ME¿ª·¢ÖУ¬Ïß³ÌÊÇÒ»¸öÐèÒª·Ç³£ÖØÊÓµÄÎÊÌ⣬ÏÂÃæÊÇÒ»¶Î¹ØÓÚÏ̵߳ÄÎÄÕ¡£ÎÒÈÏΪ¶Ô´òºÃÏ̻߳ù±¾ºÜÓаïÖú¡£
 
zz
http://www.j2medev.com/Article/ShowArticle.asp?ArticleID=5478
 
Ò»¡¢Í¬²½ÎÊÌâÌá³ö
Ï̵߳Äͬ²½ÊÇΪÁË·ÀÖ¹¶à¸öÏ̷߳ÃÎÊÒ»¸öÊý¾Ý¶ÔÏóʱ£¬¶ÔÊý¾ÝÔì³ÉµÄÆÆ»µ¡£
ÀýÈ磺Á½¸öÏß³ÌThreadA¡¢Threa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ