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

JavaÎĵµ×¢ÊÍ˵Ã÷

¶ÔÓÚJavaÓïÑÔ£¬×îÌåÌùµÄÒ»ÏîÉè¼Æ¾ÍÊÇËü²¢Ã»ÓдòËãÈÃÈËÃÇΪÁËд³ÌÐò¶øд³ÌÐò——ÈËÃÇÒ²ÐèÒª¿¼ÂdzÌÐòµÄÎĵµ»¯ÎÊÌâ¡£¶ÔÓÚ³ÌÐòµÄÎĵµ»¯£¬×î´óµÄÎÊÌâĪ¹ýÓÚ¶ÔÎĵµµÄά»¤¡£ÈôÎĵµÓë´úÂë·ÖÀ룬ÄÇôÿ´Î¸Ä±ä´úÂëºó¶¼Òª¸Ä±äÎĵµ£¬ÕâÎÞÒÉ»á±ä³ÉÏ൱Âé·³µÄÒ»¼þÊÂÇé¡£½â¾öµÄ·½·¨¿´ÆðÀ´ËƺõºÜ¼òµ¥£º½«´úÂëͬÎĵµ“Á´½Ó”ÆðÀ´¡£Îª´ïµ½Õâ¸öÄ¿µÄ£¬×î¼òµ¥µÄ·½·¨Êǽ«ËùÓÐÄÚÈݶ¼ÖÃÓÚͬһ¸öÎļþ¡£È»¶ø£¬ÎªÊ¹Ò»Çж¼ÕûÆë»®Ò»£¬»¹±ØÐëʹÓÃÒ»ÖÖÌØÊâµÄ×¢ÊÍÓï·¨£¬ÒÔ±ã±ê¼Ç³öÌØÊâµÄÎĵµ£»ÁíÍ⻹ÐèÒªÒ»¸ö¹¤¾ß£¬ÓÃÓÚÌáÈ¡ÕâЩעÊÍ£¬²¢°´ÓмÛÖµµÄÐÎʽ½«ÆäÕ¹ÏÖ³öÀ´¡£ÕâЩ¶¼ÊÇJava±ØÐë×öµ½µÄ¡£
ÓÃÓÚÌáȡעÊ͵Ť¾ß½Ð×÷javadoc¡£Ëü²ÉÓÃÁ˲¿·ÖÀ´×ÔJava±àÒëÆ÷µÄ¼¼Êõ£¬²éÕÒÎÒÃÇÖÃÈë³ÌÐòµÄÌØÊâ×¢Êͱê¼Ç¡£Ëü²»½öÌáÈ¡ÓÉÕâЩ±ê¼ÇָʾµÄÐÅÏ¢£¬Ò²½«ÅþÁÚ×¢Ê͵ÄÀàÃû»ò·½·¨ÃûÌáÈ¡³öÀ´¡£ÕâÑùÒ»À´£¬ÎÒÃǾͿÉÓÃ×îÇáµÄ¹¤×÷Á¿£¬Éú³ÉÊ®·ÖרҵµÄ³ÌÐòÎĵµ¡£
javadocÊä³öµÄÊÇÒ»¸öHTMLÎļþ£¬¿ÉÓÃ×Ô¼ºµÄWebä¯ÀÀÆ÷²é¿´¡£¸Ã¹¤¾ßÔÊÐíÎÒÃÇ´´½¨ºÍ¹ÜÀíµ¥¸öÔ´Îļþ£¬²¢Éú¶¯Éú³ÉÓÐÓõÄÎĵµ¡£ÓÉÓÚÓÐÁËjvadoc£¬ËùÒÔÎÒÃÇÄܹ»Óñê×¼µÄ·½·¨´´½¨Îĵµ¡£¶øÇÒÓÉÓÚËü·Ç³£·½±ã£¬ËùÒÔÎÒÃÇÄÜÇáËÉ»ñµÃËùÓÐJava¿âµÄÎĵµ¡£
2 ¾ßÌåÓï·¨
ËùÓÐjavadocÃüÁֻÄܳöÏÖÓÚ“/**”×¢ÊÍÖС£µ«ºÍƽ³£Ò»Ñù£¬×¢ÊͽáÊøÓÚÒ»¸ö“*/”¡£Ö÷Ҫͨ¹ýÁ½ÖÖ·½Ê½À´Ê¹ÓÃjavadoc£ºÇ¶ÈëµÄHTML£¬»òʹÓÓÎĵµ±ê¼Ç”¡£ÆäÖУ¬“Îĵµ±ê¼Ç”£¨Doc tags£©ÊÇһЩÒÔ“@”¿ªÍ·µÄÃüÁÖÃÓÚ×¢ÊÍÐеÄÆðʼ´¦£¨µ«Ç°µ¼µÄ“*”»á±»ºöÂÔ£©¡£
ÓÐÈýÖÖÀàÐ͵Ä×¢ÊÍÎĵµ£¬ËüÃǶÔÓ¦ÓÚλÓÚ×¢ÊͺóÃæµÄÔªËØ£ºÀà¡¢±äÁ¿»òÕß·½·¨¡£Ò²¾ÍÊÇ˵£¬Ò»¸öÀà×¢ÊÍÕýºÃλÓÚÒ»¸öÀඨÒå֮ǰ£»±äÁ¿×¢ÊÍÕýºÃλÓÚ±äÁ¿¶¨Òå֮ǰ£»¶øÒ»¸ö·½·¨¶¨ÒåÕýºÃλÓÚÒ»¸ö·½·¨¶¨ÒåµÄÇ°Ãæ¡£ÈçÏÂÃæÕâ¸ö¼òµ¥µÄÀý×ÓËùʾ£º
/** Ò»¸öÀà×¢ÊÍ */
public class docTest {
/** Ò»¸ö±äÁ¿×¢ÊÍ */
public int i;
/** Ò»¸ö·½·¨×¢ÊÍ */
public void f() {}
}
×¢ÒâjavadocÖ»ÄÜΪpublic£¨¹«¹²£©ºÍprotected£¨Êܱ£»¤£©³ÉÔ±´¦Àí×¢ÊÍÎĵµ¡£“private”£¨Ë½ÓУ©ºÍ“ÓѺÔ£¨Ïê¼û5Õ£©³ÉÔ±µÄ×¢ÊͻᱻºöÂÔ£¬ÎÒÃÇ¿´²»µ½ÈκÎÊä³ö£¨Ò²¿ÉÒÔÓÃ-private±ê¼Ç°üÀ¨private³ÉÔ±£©¡£ÕâÑù×öÊÇÓеÀÀíµÄ£¬ÒòΪֻÓÐpublicºÍprotected³ÉÔ±²Å¿ÉÔÚÎļþÖ®ÍâʹÓã¬ÕâÊÇ¿Í»§³ÌÐòÔ±µÄÏ£Íû¡£È»¶ø£¬ËùÓÐÀà×¢ÊͶ¼»á°üº¬µ½Êä³ö½á¹ûÀï¡£
ÉÏÊö´úÂëµÄÊ


Ïà¹ØÎĵµ£º

java Map ±éÀúËÙ¶È×îÓŽâ

java Map ±éÀúËÙ¶È×îÓŽâ
µÚÒ»ÖÖ:
Map map = new HashMap();
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
Object val = entry.getValue();
}
ЧÂʸß,ÒÔºóÒ»¶¨ÒªÊ¹ÓôËÖÖ·½Ê½£¡
µÚ¶þÖÖ:
Map map = ......

java ·½·¨static,final ¹Ø¼ü×Ö

¶ÔÓÚJavaµÄÓïÑÔ»úÖƶøÑÔ£¬µ±Ò»¸ö·½·¨±»ÉùÃ÷ΪÁËstatic»òÕßfinalÀàÐ͵Äʱºò£¬¸Ã·½·¨¿ÉÒÔ±»ÓµÓи÷½·¨µÄÀàµÄ×ÓÀà¼Ì³Ð£¬µ«ÊDz»Äܱ»¸²¸Ç£¬ÕâÊÇÒòΪµ±Ò»¸ö·½·¨±»ÉùÃ÷ΪÁËÉÏÊöÁ½ÖÖÀàÐ͵Äʱºò£¬ÔÚ±àÒëʱ¿Ì¸Ã·½·¨µÄµ÷ÓÃ×ŵÄÀàÐÍÒѾ­±»È·¶¨£¬ÊǾ²Ì¬°ó¶¨£¬¶ø²»ÊǶ¯Ì¬°ó¶¨¡£Í¬Ê±ÔÚÉùÃ÷Ϊstatic·½·¨ÌåÀïÊDz»ÔÊÐíʹÓÃthisºÍsuper¹Ø¼ü×ÖµÄ ......

±àÒëeclairÅöµ½java version "1.5.0_18"ÎÊÌâµÄ½â¾ö

±àÒëeclairÅöµ½java version "1.5.0_18"ÎÊÌâµÄ½â¾ö
makeÌáʾ£º
Your version is: java version "1.5.0_18"
ÐÞ¸Ä
build\core\main.mk
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.6[\. "$$]')
¸Ä³É£º
java_version := $(shell java -ve ......

Java Collection FramWork

jdk
µÄ¼¯ºÏ¿ò¼ÜµÄÖ÷Ìå½á¹¹£º
½Ó¿Ú
¼òÊö
ʵÏÖ
²Ù×÷ÌØÐÔ
³ÉÔ±ÒªÇó
Set
³ÉÔ±²»ÄÜÖظ´
HashSet
ÍⲿÎÞÐòµØ±éÀú³ÉÔ±¡£
³ÉÔ±¿ÉΪÈÎÒâObject×ÓÀàµÄ¶ÔÏ󣬵«Èç
¹û¸²¸ÇÁËequals·½·¨£¬Í¬Ê±×¢ÒâÐÞ¸ÄhashCode·½·¨¡£
TreeSet
ÍⲿÓÐÐòµØ±éÀú³ÉÔ±£»¸½¼ÓʵÏÖÁË
SortedSet, Ö§³Ö×Ó¼¯µÈÒªÇó˳ÐòµÄ²Ù×÷
³ÉÔ±ÒªÇóʵÏÖcaparable ......

Java¶ÔÏóת»»XMLÎļþ£ºXStream+XPP

²»ÐèÒªÉú³Édtd,ÎÞÓÃÅäÖÃ,²»ÐèÒªÉú³É¸¨ÖúÀ࣬Ëٶȿ졣Õâ¾ÍÊÇxstream+xpp³¬Ç¿»Æ½ð×éºÏ¡£
xstream´ó¼Ò¶¼ÖªµÀÀ²£¬XML Pull ParserÊÇÒ»ÖÖ¸ßËÙµÄ ½âÎöxmlÎļþµÄ·½Ê½£¬ËÙ¶ÈÒª±È´«Í³·½Ê½¿ìºÜ¶à£¨·¢ÏÖpullʽ½âÎöÏÖÔڱȽÏÁ÷ÐÐÁË£©¡£ÏÂÃæÎÒ¸ø³ö¶àÖÖʹÓ÷½·¨µÄÀý×Ó¡£
1.×î¼òµ¥µÄʹÓ÷½·¨
ÒòΪÕâ¸öÌ«¼òµ¥£¬ËùÒÔÎÒ´ÓmoogleµÄblog http: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ