java ±à³Ì´ÓÈëÃŵ½¾«Í¨£¨×ª£©
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲçÛJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJDKÊÇSun¹«Ë¾·¢²¼µÄJDK£¬³ýÁËSunÖ®Í⣬»¹Óкܶ๫˾ºÍ×éÖ¯¶¼¿ª·¢ÁË×Ô¼ºµÄJDK£¬ÀýÈçIBM¹«Ë¾¿ª·¢µÄJDK£¬BEA¹«Ë¾µÄJrocket£¬»¹ÓÐGNU×éÖ¯¿ª·¢µÄJDKµÈµÈ¡£ÆäÖÐIBMµÄJDK°üº¬µÄJVM£¨Java Virtual Machine£©ÔËÐÐЧÂÊÒª±ÈSun JDK°üº¬µÄJVM¸ß³öÐí¶à¡£¶øרÃÅÔËÐÐÔÚx86ƽ̨µÄJrocketÔÚ·þÎñ¶ËÔËÐÐЧÂÊÒ²Òª±ÈSun JDKºÃºÜ¶à¡£µ«²»¹ÜÔõçÛ˵£¬ÎÒÃÇ»¹ÊÇÐèÒªÏÈ°ÑSun JDKÕÆÎպá£
1¡¢ JDKµÄÏÂÔغͰ²×°
JDKÓÖ½Ð×öJ2SE£¨Java2 SDK Standard Edition£©£¬¿ÉÒÔ´ÓSunµÄJavaÍøÕ¾ÉÏÏÂÔص½£¬http://java.sun.com/j2se/downloads.html £¬JDKµ±Ç°×îеİ汾ÊÇJ2SDK1.4.2£¬½¨ÒéÏÂÔظð汾µÄJDK£¬ÏÂÔØÒ³ÃæÔÚÕâÀhttp://java.sun.com/j2se/1.4.2/download.html¡£
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ä¬ÈÏ°²×°Íê±Ïºó»áÔÚC:Program FilesJavaĿ¼Ï°²×°Ò»Ì×JRE£¨¹©ä¯ÀÀÆ÷À´Ê¹Óã©£¬ÔÚC:j2sdk1.4.2Ï°²×°Ò»Ì×JDK£¨Ò²°üÀ¨Ò»Ì×JRE£©¡£È»ºóÎÒÃÇÐèÒªÔÚ»·¾³±äÁ¿PATHµÄ×îÇ°ÃæÔö¼ÓjavaµÄ·¾¶C:j2sdk1.4.2bin¡£ÕâÑùJDK¾Í°²×°ºÃÁË¡£
2¡¢ JDKµÄÃüÁ¾ß
JDKµÄ×îÖØÒªÃüÁîÐй¤¾ß£º
java£º Æô¶¯JVMÖ´ÐÐclass
javac£º Java±àÒëÆ÷
jar£º Java´ò°ü¹¤¾ß
javadoc£º JavaÎĵµÉú³ÉÆ÷
ÕâЩÃüÁîÐбØÐëÒª·Ç³£·Ç³£ÊìϤ£¬¶ÔÓÚÿ¸ö²ÎÊý¶¼ÒªºÜ¾«Í¨²ÅÐС£¶ÔÓÚÕâЩÃüÁîµÄѧϰ£¬JDK DocumentationÉÏÓÐÏêϸµÄÎĵµ¡£
¶þ¡¢ JDK Documentation
DocumentationÔÚJDKµÄÏÂÔØÒ³ÃæÒ²ÓÐÏÂÔØÁ¬½Ó£¬½¨ÒéͬʱÏÂÔØDocumentation¡£DocumentationÊÇ×î×îÖØÒªµÄ±à³ÌÊֲᣬº¸ÇÁËÕû¸öJavaËùÓз½ÃæµÄÄÚÈݵÄÃèÊö¡£¿ÉÒÔÕâÑù˵£¬Ñ§Ï°Java±à³Ì£¬´ó²¿·Öʱ¼ä¶¼ÊÇ»¨ÔÚ¿´Õâ¸öDocumentationÉÏÃæµÄ¡£ÎÒÊÇËæÉíЯ´øµÄ£¬Ð´Java´úÂëµÄʱºò£¬Ëæʱ²é¿´£¬Ðëô§²»ÀëÊÖ¡£
Èý¡¢ Ó¦Ó÷þÎñÆ÷(App Server)
App ServerÊÇÔËÐÐJavaÆóÒµ×é¼þµÄƽ̨£¬¹¹³ÉÁËÓ¦ÓÃÈí¼þµÄÖ÷ÒªÔËÐл·¾³¡£µ±Ç°Ö÷Á÷µÄApp ServerÊÇBEA¹«Ë¾µÄWeblogic ServerºÍIBM¹«Ë¾µÄWebsphereÒÔ¼°Ãâ·ÑµÄJboss£¬Ñ¡ÔñÆäÖÐÒ»¸ö½øÐÐѧϰ¾Í¿ÉÒÔÁË£¬¸öÈËÍƼöWeblogic£¬ÒòΪËüµÄÌåϵ½á¹¹¸ü¼Ó¸É¾»£¬¿ª·¢ºÍ²¿Êð¸ü¼Ó·½±ã£¬ÊÇJavaÆóÒµÈí¼þ¿ª·¢ÈËÔ±Ê×Ñ¡µÄ¿ª·¢Æ½Ì¨¡£ÏÂÃæ¼òÒª½éÉܼ¸ÖÖ³£ÓõÄApp Server£º
1¡¢ Tomcat
TomcatÑϸñÒâÒåÉϲ¢²»ÊÇÒ»¸öÕæÕýµÄAp
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
Xml´úÂë \n »Ø³µ(\u000a) \t ˮƽÖƱí·û(\u0009) \b ¿Õ¸ñ(\u0008) \r »»ÐÐ(\u000d) \f »»Ò³(\u000c) \' µ¥ÒýºÅ(\u0027) \" Ë«ÒýºÅ(\u0022) \\ ·´Ð±¸Ü(\u005c) \ddd Èýλ°Ë½øÖÆ ......
¡ñÀûÓÃsplitº¯Êý£º String s = new String("2_8_7_4_3_9_1"); String[] arr = s.split("_"); JavaÖÐÓÃsplitº¯Êý½øÐзָî×Ö·û´®¡£ 1.Óï·¨ÈçÏ String.split(sourceStr,maxSplit) String.split(sourceStr) ²ÎÊý˵Ã÷£ºsourceStrÊDZ»·Ö¸îµÄ×Ö·û´®£¬maxSplitÊÇ×î´óµÄ·Ö¸îÊý ·µ»Øֵ˵Ã÷£ºsplitº¯ÊýµÄ·µ»ØÖµÊÇÒ»¸ö×Ö ......
Ò».ÖØÔØ£º¼´Í¬Ãû·½·¨²»Í¬²ÎÊý£»¶à̬£ºÍ¬Ãûͬ²Î·½·¨£¬ÔÚ¾ßÓм̳йØϵµÄÀàÖеĶ¯Ì¬Ñ¡Ôñ
¶þ.ÖØÔØ´«Èë²ÎÊýÊý¾ÝÀàÐÍСÓÚ·½·¨ÉùÃ÷²ÎÊýÀàÐÍʱ£¬»á±»×Ô¶¯ÌáÉý¡£char ÀàÐͻᱻֱ½ÓÌáÉýΪint¡£ÐéÄâ»ú¾ÍÊÇÓÃint±íʾcharµÄ¡£
Èý.static·½·¨ÄÚ²¿²»Äܵ÷Ó÷Çstatic·½·¨£¬·´Ö®¿ÉÒÔ¡£
ËÄ.¶ÔÓÚ·½·¨¾Ö²¿±äÁ¿£¬Èç¹ûδ³õʼ»¯¾Íµ÷Ó㬱àÒë´íÎó¡ ......