Win7ϵͳÏÂJava»·¾³±äÁ¿µÄÅäÖÃ
win7ϵͳÏÂJava»·¾³±äÁ¿µÄÅäÖà Jdk°æ±¾Îª1.6
´ò¿ª¿ØÖÆÃæ°å->Óû§ÕÊ»§->¸ü¸ÄÎҵĻ·¾³±äÁ¿
±äÁ¿Ãû£ºJAVA_HOME
±äÁ¿Öµ£ºD:\Program Files\Java\jdk1.6.0_12(ÕâÖ»ÊÇÎÒµÄJDK°²×°Â·¾¶)
±äÁ¿Ãû£ºPath
ÔÚ±äÁ¿ÖµµÄ×îÇ°Ãæ¼ÓÉÏ£º%JAVA_HOME%\bin;£¨ÈôÒѾÓÐPathÏÎÞÐëÁíÍâн¨£¬Ö±½ÓÔÚºó
Ãæ¼Ó£¬µ«ÐèÓÃ;ÓëÇ°ÃæÒÑÓеÄÏî·Ö¸ô¿ª£©
±äÁ¿Ãû£ºCLASSPATH
±äÁ¿Öµ£º.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
×îºó²âÊÔһϻ·¾³±äÁ¿ÊÇ·ñÉèÖóɹ¦
ÔËÐÐ ->cmd
»Ø³µ
ÊäÈëjavac
Èç¹û³öÏÖÈçÏÂÐÅÏ¢
Ó÷¨£ºjavac <Ñ¡Ïî> <Ô´Îļþ>
ÆäÖУ¬¿ÉÄܵÄÑ¡Ïî°üÀ¨£º
-g Éú³ÉËùÓе÷ÊÔÐÅÏ¢
-g:none ²»Éú³ÉÈκε÷ÊÔÐÅÏ¢
-g:{lines,vars,source} Ö»Éú³ÉijЩµ÷ÊÔÐÅÏ¢
-nowarn ²»Éú³ÉÈκξ¯¸æ
-verbose Êä³öÓйرàÒëÆ÷ÕýÔÚÖ´ÐеIJÙ×÷µÄÏûÏ¢
-deprecation Êä³öʹÓÃÒѹýʱµÄ API µÄԴλÖÃ
-classpath <·¾¶> Ö¸¶¨²éÕÒÓû§ÀàÎļþµÄλÖÃ
-cp <·¾¶> Ö¸¶¨²éÕÒÓû§ÀàÎļþµÄλÖÃ
-sourcepath <·¾¶> Ö¸¶¨²éÕÒÊäÈëÔ´ÎļþµÄλÖÃ
-bootclasspath <·¾¶> ¸²¸ÇÒýµ¼ÀàÎļþµÄλÖÃ
-extdirs <Ä
Ïà¹ØÎĵµ£º
URLµÄopenConnection()·½·¨½«·µ»ØÒ»¸öURLConnection¶ÔÏ󣬸öÔÏó±íʾӦÓóÌÐòºÍ URL Ö®¼äµÄͨÐÅÁ´½Ó¡£³ÌÐò¿ÉÒÔͨ¹ýURLConnectionʵÀýÏò¸ÃURL·¢ËÍÇëÇ󡢶ÁÈ¡URLÒýÓõÄ×ÊÔ´¡£
ͨ³£´´½¨Ò»¸öºÍ URL µÄÁ¬½Ó£¬²¢·¢ËÍÇëÇ󡢶ÁÈ¡´Ë URL ÒýÓõÄ×ÊÔ´ÐèÒªÈçϼ¸¸ö²½Ö裺
£¨1£©Í¨¹ýµ÷ÓÃURL¶ÔÏóopenConnection()·½·¨À´´´½¨URLConnectio ......
JavaÃæÊÔÖУ¬×î³£±»ÈËÎʵ½µÄ¼¸¸öÎÊÌ⣺
1. java.util.*°üµÄUML½á¹¹Í¼¡£
2. VectorºÍArrayList¡¢LinkedListÇø±ð Hashtable ºÍ HashMapÖ®¼äµÄÇø±ð
3. String¡¢StringBuffer£¬StringBuilderÖ®¼äÇø±ð¡£
--»Ø´ð--
1.
Collection
|
|_List
| |_LinkedList
| | ......
ÎÊÌâ1.
public static void append(String str){
str += " Append!";
}
public static void append(StringBuffer sBuffer){
sBuffer.append(" Append!");
}
public void test(){
String str = "Nothing";
append(str);
System.out.println(str);
StringBuffer sBuffer = new StringBuffer("Nothing" ......
ÔÎÄÀ´×ÔÓÚ¡¶Developing Games in Java¡·£¬×÷ÕߣºDavid Brackeen, Bret Barker, Laurence Vanhelsuwé
JavaÔÚÉè¼Æʱ³ä·Ö¿¼ÂÇÁËÏß³Ì,Òò´ËÔÚJavaÖÐÏ̵߳IJÙ×÷±ÈÆäËûÓïÑÔÒª¼òµ¥¡£Ö»ÐèÉú³ÉÒ»¸öThreadÀàµÄʵÀý±ã¿É´´½¨Ò»¸öỊ̈߳¬È»ºóµ÷ÓÃstart()·½·¨Ï߳̾ÍÆô¶¯ÁË¡£
&nbs ......
ÀàÃû£º
java.util.Date
¹¹Ôì·½·¨£º
¹¹Ôì·½·¨ ½â˵
Date()
ÎÞ²ÎÊýµÄ¹¹Ôì·½·¨£¬½«¹¹½¨Ò»¸ö±£³Öµ±Ç°ÈÕÆÚ.ʱ¼äµÄDate¶ÔÏó¡£
Date(long time)
²ÎÊýΪ1970Äê1ÔÂ1ÈÕ00ʱ00·Ö00ÃëÆðËù¾¹ýµÄºÁÃëÊý£¬½«¹¹½¨Ò»¸ö±£³Ö¸ÃÈÕÆÚ.ʱ¼äµÄ¾«È·µ½ºÁÃëµÄDate¶ÔÏó¡£
ÆäËûÓÐЩ¹¹Ôì·½·¨ÒѾ²»ÍƼöʹÓã¬ÕâÀï² ......