ʹÓà ANT ¿ª·¢ Java ³ÌÐò
ʹÓà ANT ¿ª·¢ Java ³ÌÐò
³£Ìý´ó¼ÒÌÖÂÛÄĸö Java ¿ª·¢¹¤¾ß±È½ÏºÃ£¬JBuilder£¬Virtual Cafe ?
½ñÌì½éÉÜÒ»¸ö¼òµ¥Ò×ÓÃµÄ Java ¿ª·¢£¬±àÒ룬¼¯³É£¬²âÊÔ¹¤¾ß£ºJakarta Ant
Ëû±»³ÆΪ java »·¾³ÀïµÄ make (make ÔÚ C ³ÌÐò¿ª·¢ÀïÈËÈ˽ÔÖª)
Java ³ÌÐò±à¼Æ÷°®ÓÃɶÓÃɶ£¬ÎÒϲ»¶Óà UltraEdit¡£
ÒÔ HelloWorld ΪÀý½éÉÜËûµÄʹÓá£
´ËʾÀý¿ÉÔÚ´ËÏÂÔØ£º
ftp://210.52.88.133/pub/doc/code/ant/HelloWorld.zip
.ÏÂÔØ ant £º£¨×îаæ 1.5£©
http://jakarta.apache.org/builds/jakarta-ant/release/v1.5/bin/
windows ÏÂÇëÏÂÔØ zip Îļþ
unix ÏÂÇëÏÂÔØ tar.gz Îļþ
.°²×° JDK£º
°²×°µ½ c:\jdk£¬²¢È·ÈÏÄÜÕÒµ½ c:\jdk\bin\java
.°²×° ant£º
°Ñ ant ½âѹµ½±¾µØÓ²ÅÌ c:\ant£¬²¢È·ÈÏÄÜÕÒµ½ c:\ant\bin\ant.bat
.ÉèÖû·¾³±äÁ¿£º
JDK_HOME£ºc:\jdk
ANT_HOME£ºc:\ant
PATH£ºÔÚÔÀ´µÄ PATH ¿ªÍ·¼ÓÉÏ c:\ant\bin;c:\jdk\bin
×¢£º
windows ÏÂ×ö²Ù×÷£ºÎҵĵçÄÔ ->; ÊôÐÔ ->; ¸ß¼¶ ->; »·¾³±äÁ¿ ->; Óû§±äÁ¿
ÿ´ÎÐÞ¸ÄÍê»·¾³±äÁ¿£¬ÒªÖØдò¿ª MS-DOS ´°¿Ú²ÅÄÜÉúЧ
.¿ªÊ¼¿ª·¢£º
Ò»¸ö ant ÏîĿĿ¼½á¹¹£º
c:\HelloWorld £ºÏîÄ¿Ö÷Ŀ¼
\src £ºÔ´³ÌÐòĿ¼
\classes £º±àÒëºóµÄ class ÎļþĿ¼
\lib £º¿ª·¢ÏîÄ¿ËùÐèÒªµÄÀà¿âĿ¼£¬±ÈÈ翪·¢Êý¾Ý¿âʱËùÐèÒªµÄ jdbc lib£¨Õâ´ÎûÓõ½£©
\jar £º´ò°üºÃµÄ jar ³ÌÐòĿ¼£¨Õâ´ÎûÓõ½£©
\build.xml £ºÏîÄ¿ÅäÖÃÎļþ
1.½¨Á¢Ò»¸öÏîÄ¿µÄÖ÷Ŀ¼
mkdir c:\Helloworld
2.´´½¨ÏîÄ¿ÅäÖÃÎļþ£º
c:\HelloWorld\builder.xml
---------------------------------
Ïà¹ØÎĵµ£º
¡¡¡¡inkfishÔ´´£¬ÇëÎðÉÌÒµÐÔÖÊתÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£
¡¡¡¡Java Collections Framework(JCF)
ÊÇJava SEÖÐÒ»¸ö»ù±¾µÄÀ༯£¬¼¸ºõËùÓеÄÏîÄ¿¶¼»áÓõ½£¬ÆäÖеÄList
ÔòÊÇJCFÖÐ×î×î³£ÓõÄÒ»¸ö½Ó¿Ú¡£Î§ÈÆList
½Ó¿Ú£¬ÓкܶàʵÏÖ£¬ÖîÈç³£ÓõÄArrayList
¡¢LinkedList
¡¢Vector
¡¢Stack
£¬ ......
java×öµÄϵͳ¸øÈ˵ÄÓ¡ÏóÊÇʲô£¿Õ¼Äڴ棡˵µÀÕâ¾ä»°¾Í»áÓÐN¶àÈËÕ¾³öÀ´Îªjava±ç»¤£¬²¢¾Ù³öÒ»¶ÑµÄÐÔÄܲâÊÔ±¨¸æÀ´Ö¤Ã÷ÕâÒ»µã¡£Æäʵ´ÓÀíÂÛÉÏÀ´½²java×öµÄϵͳ²¢²»±ÈÆäËûÓïÑÔ¿ª·¢³öÀ´µÄϵͳ¸üÕ¼ÓÃÄڴ棬ÄÇôΪʲôȴÓÐÕâôN¶àÀíÓÉÀ´Ö¤Ã÷ËüȷʵռÄÚ´æÄØ£¿Á½¸ö×Ö£¬ÂªÏ°¡£
£¨1£©±ðÓÃnew Boolean()¡£
Ôںܶೡ¾°ÖÐBooleanÀàÐÍÊDZØÐ ......
ʲôÊÇÁ÷£º
Á÷ÊÇÒ»¸ö³éÏóµÄ¸ÅÄî¡£µ±Java³ÌÐòÐèÒª´ÓÊý¾ÝÔ´¶ÁÈ¡Êý¾Ýʱ£¬»á¿ªÆôÒ»¸öµ½Êý¾ÝÔ´µÄÁ÷¡£Êý¾ÝÔ´¿ÉÒÔÊÇÎļþ£¬ÄÚ´æ»òÕßÍøÂçµÈ¡£Í¬Ñù£¬µ±³ÌÐòÐèÒªÊä³öÊý¾Ýµ½Ä¿µÄµØʱҲһÑù»á¿ªÆôÒ»¸öÁ÷£¬Êý¾ÝÄ¿µÄµØÒ²¿ÉÒÔÊÇÎļþ¡¢ÄÚ´æ»òÕßÍøÂçµÈ¡£Á÷µÄ´´½¨ÊÇΪÁ˸ü·½±ãµØ´¦ÀíÊý¾ÝµÄÊäÈëÊä³ö¡£
Á÷·ÖΪ×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷¡£×Ö½ÚÁ÷Ò²³ÆΪÔÊ ......
1 Èç¹ûÒ»¿éÄÚ´æÇøÓòÄܹ»Öظ´ÀûÓã¬×îºÃ²»ÒªÉêÇëеġ£Õâ¸öÄÚ´æÇøÓòÓпÉÄÜÊÇϵͳµÄÒ»¸öÀ࣬×Ô¼ºµÄÒ»¸öÄÚ²¿ÓÐÊý×éÔªËØ£¬»òÕßÄܹ»·Å´óÁ¿Êý¾ÝµÄ½á¹¹¡£
2 ×îºÃ²»ÒªÔÚÑ»·ÀïÃæÉêÇëÄڴ棬ѻ·Ô½´ó£¬Ô½»µÊ¡£»»¾ä»°Ëµ£¬ÉêÇëÄÚ´æƵÂʱðÌ«¸ß¡£ºÃ±ÈÒ»¸öÈËÿ¶Ù³ÔÁ½Íë·¹ÕýºÃ£¬ÉíÌåµÄÏû»¯ÏµÍ³¿ÉÒÔ³ÐÊÜ£¬Èç¹ûÈÃËûÒ»¶Ù°ÑÊ®¶ÙµÄ¶¼³Ôµô£¬²»ÕÍ ......
ÀûÓÃJava Reflect»úÖƱàдÍòÄÜtoString()·½·¨:
package com.accp.test.filed;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
publ ......