java»·¾³±äÁ¿ÉèÖÃ
java»·¾³±äÁ¿ÅäÖÃ
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
¡¡ 2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“»·¾³±äÁ¿”£»
4.Ôړϵͳ±äÁ¿”ÖУ¬ÉèÖÃ3ÏîÊôÐÔ£¬JAVA_HOME,PATH,CLASSPATH(´óСдÎÞËùν),ÈôÒÑ´æÔÚÔòµã»÷“±à¼”£¬²»´æÔÚÔòµã»÷“н¨”£»
5.JAVA_HOMEÖ¸Ã÷JDK°²×°Â·¾¶£¬¾ÍÊǸղŰ²×°Ê±ËùÑ¡ÔñµÄ·¾¶D:\java\jdk1.5.0_08£¬´Ë·¾¶Ï°üÀ¨lib£¬bin£¬jreµÈÎļþ¼Ð£¨´Ë±äÁ¿×îºÃÉèÖã¬ÒòΪÒÔºóÔËÐÐtomcat£¬eclipseµÈ¶¼ÐèÒªÒÀ*´Ë±äÁ¿£©£»
PathʹµÃϵͳ¿ÉÒÔÔÚÈκη¾¶ÏÂʶ±ðjavaÃüÁÉèΪ£º
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
¡¡ CLASSPATHΪjava¼ÓÔØÀà(class or lib)·¾¶£¬Ö»ÓÐÀàÔÚclasspathÖУ¬javaÃüÁî²ÅÄÜʶ±ð£¬ÉèΪ£º
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar (Òª¼Ó.±íʾµ±Ç°Â·¾¶)
¡¡¡¡%JAVA_HOME%¾ÍÊÇÒýÓÃÇ°ÃæÖ¸¶¨µÄJAVA_HOME£»
6.“¿ªÊ¼”£>;“ÔËÐД£¬¼üÈë“cmd”£»
7.¼üÈëÃüÁî“java -version”£¬“java”£¬“javac”¼¸¸öÃüÁ³öÏÖ»Ã棬˵Ã÷»·¾³±äÁ¿ÅäÖóɹ¦£»
Ïà¹ØÎĵµ£º
XMLÎļþ book.xml
<book>
<person>
<first>Kiran</first>
<last>Pai</last>
<age>22</age>
</person>
<person>
<first>Bill</first>
<last>Gates</last>
<age>46</age>
</person>
<person>
&l ......
×î½üѧϰÖÐ×ÜÊǸоõÍ£Ö¹²»Ç°ÁË£¬µ½´ïÒ»¸öÆ¿¾±£¬¾³£Ð´µ½Ò»¸öµØ·½»á¾õµÃÕâ¸ö¶«Î÷ѧ¹ýµ«Óв»ÊÇÄÇôµÄÇå³þ£¬Ò»ÖÖËƶ®·Ç¶®µÄ¸Ð¾õ£¬ËùÒÔ¾ö¶¨Õҵط½°ÑÿÌìËùѧϰµÄ»òÓÐÓõĶ«Î÷¼Ç¼ÏÂÀ´£¬½ñÌ쿪ʼÕâÀォÊÇÎҵļ¼Êõ¿â£¬ÎÒ»áÓëËùÓа®ºÃJAVAµÄÅóÓÑÒ»Æðѧϰ£¬Ò»Æð½ø²½¡£½ñÌìÊÇ¿ª²©µÚÒ»Ì죬ÕýºÃÔÚ¸´Ï°DAOÉè¼Æģʽ£¬¿´µ½Ò»Æ¬²»´íµÄ½²½â£ ......
ÔÚʵ¼ÊÏîÄ¿Öиø¶¨Ò»Îļþ¼Ð£¬µÃµ½Õâ¸öÎļþ¼ÐÏÂËùÓеÄÎļþÕâÑùµÄÐèÇó²¢²»ÊǺܶ࣬¸ü¶àµÄÊDzéÕÒ»òÊÇɾ³ýijһ¾ßÌåµÄÎļþ
import java.io.File;
import java.util.ArrayList;
public class FileTest {
private static ArrayList<String> filelist = new ArrayList<String>();
public stati ......
¹ÖÒìÖ®Ò»£º
connect(SocketAddress endpoint):Õâ¸ö·½·¨£¬³¢ÊÔÁ¬½Óserver¶Ë£¬Èç¹ûÁ¬½Ó²»ÉÏ£¬¾ÍÅ׳öIOExceptionÒì³£¡£Èç¹ûÁ¬½Ó³É¹¦ÁË£¬¾Í¼ÌÐøÖ´ÐÐÏÂÒ»²½µÄ´úÂë¡£
¹ÖÒìÖ®¶þ£º
boolean isConnected() :Õâ¸ö·½·¨µÄ½á¹û½ö½ö´ú±íÕâ¸ösocketÔø¾³É¹¦Á¬½Óµ½ÁËserver£¬µ«²¢²»±íʾÏÖÔÚÕâ¸öʱ¿ÌËüºÍserverÈÔ±£³ÖÁ¬½Ó״̬¡£
ÓÐ ......
Ò»¡£javaµÄÓÅÊÆ
1.ÃæÏò¶ÔÏó
2.¿çƽ̨
java×÷ΪһÖÖÍøÂçÓïÑÔ£¬ÆäÔ´´úÂë±»±àÒë³É.class×Ö½ÚÂ룬ÓÉjavaÐéÄâ»úÖ´ÐУ¬
3.¼òµ¥
Ò»£¬java·ç¸ñÀàËÆc++£¬c++³ÌÐòÔ±ÄܺܿìµØÕÆÎÕjava
¶þ£¬javaÞðÆúÁËÖ¸Õ룬½á¹¹£¬Ã¶¾ÙµÈÒ×Òý·¢ÄÚ´æÎÊÌâµÄ²Ù×÷
Èý£¬javaÌṩÁ˷ḻµÄapi£¬Äܹ»°ïÖúÎÒÃÇ¿ìËÙ¿ª·¢
4.½¡×³
Ò»¡£Ç¿ÀàÐ͵ģ¬ÀàÐͼì²éºÜÑ ......