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

JAVAµÄÈÝÆ÷ List,Map,Set

JAVAÈÝÆ÷
¡¡¡¡½âÊÍÒ»£º
¡¡¡¡ÈÝÆ÷£¨Container£©
¡¡¡¡Spring ÌṩÈÝÆ÷¹¦ÄÜ£¬ÈÝÆ÷¿ÉÒÔ¹ÜÀí¶ÔÏóµÄÉúÃüÖÜÆÚ¡¢¶ÔÏóÓë¶ÔÏóÖ®¼äµÄÒÀÀµ¹Øϵ£¬Äú¿ÉÒÔʹÓÃÒ»¸öÅäÖÃÎļþ£¨Í¨³£ÊÇXML£©£¬ÔÚÉÏÃ涨ÒåºÃ¶ÔÏóµÄÃû³Æ¡¢ÈçºÎ²úÉú£¨Prototype ·½Ê½»òSingleton ·½Ê½£©¡¢Äĸö¶ÔÏó²úÉúÖ®ºó±ØÐëÉ趨³ÉΪij¸ö¶ÔÏóµÄÊôÐԵȣ¬ÔÚÆô¶¯ÈÝÆ÷Ö®ºó£¬ËùÓеĶÔÏ󶼿ÉÒÔÖ±½ÓÈ¡Ó㬲»ÓñàдÈκÎÒ»ÐгÌÐò´úÂëÀ´²úÉú¶ÔÏ󣬻òÊǽ¨Á¢¶ÔÏóÓë¶ÔÏóÖ®¼äµÄÒÀÀµ¹Øϵ¡£
¡¡¡¡»»¸ö¸üÖ±°×µãµÄ˵Ã÷·½Ê½£ºÈÝÆ÷ÊÇÒ»¸öJava Ëù±àдµÄ³ÌÐò£¬Ô­ÏȱØÐë×ÔÐбàд³ÌÐòÒÔ¹ÜÀí¶ÔÏó¹Øϵ£¬ÏÖÔÚÈÝÆ÷¶¼»á×Ô¶¯°ïÄú×÷ºÃ¡£
¡¡¡¡³£ÓÃÈÝÆ÷£ºWebSphere,WebLogic,Resin,Tomcat
½âÊͶþ£º
¡¡¡¡ÈÝÆ÷Àà
¡¡¡¡JavaÈÝÆ÷Àà°üº¬List¡¢ArrayList¡¢Vector¼°map¡¢HashTable¡¢HashMap
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Collection½Ó¿Ú
¡¡¡¡CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£Ò»Ð© CollectionÔÊÐíÏàͬµÄÔªËضøÁíһЩ²»ÐС£Ò»Ð©ÄÜÅÅÐò¶øÁíһЩ²»ÐС£Java SDK²»Ìṩֱ½Ó¼Ì³Ð×ÔCollectionµÄÀ࣬Java SDKÌṩµÄÀ඼ÊǼ̳Ð×ÔCollectionµÄ“×Ó½Ó¿Ú”ÈçListºÍSet¡£
¡¡¡¡ËùÓÐʵÏÖCollection½Ó¿ÚµÄÀ඼±ØÐëÌṩÁ½¸ö±ê×¼µÄ¹¹Ô캯Êý£ºÎÞ²ÎÊýµÄ¹¹Ô캯ÊýÓÃÓÚ´´½¨Ò»¸ö¿ÕµÄCollection£¬ÓÐÒ»¸ö Collection²ÎÊýµÄ¹¹Ô캯ÊýÓÃÓÚ´´½¨Ò»¸öеÄCollection£¬Õâ¸öеÄCollectionÓë´«ÈëµÄCollectionÓÐÏàͬµÄÔªËØ¡£ºóÒ»¸ö¹¹Ô캯ÊýÔÊÐíÓû§¸´ÖÆÒ»¸öCollection¡£
¡¡¡¡ÈçºÎ±éÀúCollectionÖеÄÿһ¸öÔªËØ£¿²»ÂÛCollectionµÄʵ¼ÊÀàÐÍÈçºÎ£¬Ëü¶¼Ö§³ÖÒ»¸öiterator()µÄ·½·¨£¬¸Ã·½·¨·µ»ØÒ»¸öµü´ú×Ó£¬Ê¹Óøõü´ú×Ó¼´¿ÉÖðÒ»·ÃÎÊCollectionÖÐÿһ¸öÔªËØ¡£µäÐ͵ÄÓ÷¨ÈçÏ£º
¡¡¡¡¡¡¡¡Iterator it = collection.iterator(); // »ñµÃÒ»¸öµü´ú×Ó
¡¡¡¡¡¡¡¡while(it.hasNext()) {
¡¡¡¡¡¡¡¡¡¡¡¡Object obj = it.next(); // µÃµ½ÏÂÒ»¸öÔªËØ
¡¡¡¡¡¡¡¡}
¡¡¡¡ÓÉCollection½Ó¿ÚÅÉÉúµÄÁ½¸ö½Ó¿ÚÊÇListºÍSet¡£
List½Ó¿Ú
¡¡¡¡ListÊÇÓÐÐòµÄCollection£¬Ê¹Óô˽ӿÚÄܹ»¾«È·µÄ¿ØÖÆÿ¸öÔªËزåÈëµÄλÖá£Óû§Äܹ»Ê¹ÓÃË÷Òý£¨ÔªËØÔÚListÖеÄλÖã¬ÀàËÆÓÚÊý×éϱ꣩À´·ÃÎÊListÖеÄÔªËØ£¬ÕâÀàËÆÓÚJavaµÄÊý×é¡£
ºÍÏÂÃæÒªÌáµ½µÄSet²»Í¬£¬ListÔÊÐíÓÐÏàͬµÄÔªËØ¡£
¡¡¡¡³ýÁ˾ßÓÐCollection


Ïà¹ØÎĵµ£º

javaÊý¾Ý½á¹¹Ö®É¢Áм¯HashSetÓëÉ¢ÁбíHashtable

1.É¢Áм¯HashSet
     HashSetÀàÔÚjava.util°üÖÐ
     A.¹¹Ôì·½·¨£ºHashSet()
     B.³£Ó÷½·¨
          public boolean add(Object o)£ºÏò¼¯ºÏÖÐÌí¼ÓÖ¸¶¨ÔªËØo
      &nb ......

ÈçºÎ ʹÓà java ²Ù×Ý XML Îļþ


Introduction to XML and XML With Java  
 
If you are looking for sample programs to parse a XML file using DOM/SAX parser or looking for a program to generate a XML file please proceed directly to programs.
This small tutorial introduces you to the basic concepts of XML and using Xer ......

java ʵÏÖÏÂÔع¦ÄÜ

/**
* ÏÂÔØÎļþ
* @param filePath --ÎļþÍêÕû·¾¶
* @param response --HttpServletResponse¶ÔÏó
*/
public static void downloadFile(
String filePath,
javax.servlet.http.HttpServletResponse response) {
String fileName = ""; //ÎļþÃû£¬Êä³öµ½Óû§µÄÏÂÔضԻ°¿ò
//´ÓÎļþÍêÕû·¾¶ÖÐÌáÈ¡ÎļþÃû£¬²¢½øÐбà ......

MySQL Java ¿ª·¢Ì××°

MySQL Java ¿ª·¢Ì××°(·þÎñÆ÷,¹ÜÀí¹¤¾ß,JDBCÇý¶¯,ʾÀý´úÂë)
С¸üÐÂ: ΪÁ˼õÇḺµ£, Óà MySQL-Front 2.5 À´¹ÜÀí, Õâ¸öÈí¼þÎÞÖÐÎÄÎÊÌâ. Èç¹ûÒÔºó¿ªÔ´°æ±¾HeidiSQLµÄ½â¾öÁËÖÐÎÄÎÊÌâ, ¾ÍÓÿªÔ´µÄ.
ÏÂÔØ: http://tomcatmonitor.googlecode.com/files/portable_mysql5.exe  4.02MB (×Ô½âѹ°ü)
²Î¿¼Îĵµ: MySQL 5 ÂÌÉ« ......

Java×ÔѧС½á——2

×î½üÓ¦ÀÏʦµÄÒªÇó¿´ÁËÊý¾Ý¿â¡£ÔÚÍøÉÏÕÒÁËÊÓƵ£¬ÊǸö½ÌÓý»ú¹¹·¢µÄ¡£ÄǸöÊÓƵ¿´µÃÎÒÖ±·¸À§£¬³ýÁËÀÏʦ½²¿Î½²´íµÄʱºò¡£
ÊÓƵ½²µÃºÜdzÏÔ£¬µÚÒ»Õ½²ÁËsqlÊý¾Ý¿â½á¹¹£¬ÓÐʲôģÐÍ¡£½Ó׎²Ö÷¼ü£¬Íâ¼ü£¬È»ºóÊǽ¨±íÓï¾ä£¬²éѯÓï¾äµÈµÈ¡£
show databases ÏÔʾÊý¾Ý¿â¡£
use ** ʹÓÃÊý¾Ý¿â¡£
create table ** (**,**,**) ½¨±í¡£
se ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ