java ¼¯ºÏÀà
1.1.1. ¼¯ºÏ¿ò¼ÜÖеĽӿÚ
Ëùν¿ò¼Ü¾ÍÊÇÒ»¸öÀà¿âµÄ¼¯ºÏ¡£¼¯ºÏ¿ò¼Ü¾ÍÊÇÒ»¸öÓÃÀ´±íʾºÍ²Ù×÷¼¯ºÏµÄͳһµÄ¼Ü¹¹£¬°üº¬ÁËʵÏÖ¼¯ºÏµÄ½Ó¿ÚÓëÀà¡£
* Collection£º¼¯ºÏ²ã´ÎÖеĸù½Ó¿Ú£¬JDKûÓÐÌṩÕâ¸ö½Ó¿ÚÖ±½ÓµÄʵÏÖÀà¡£
* Set£º²»ÄÜ°üº¬Öظ´µÄÔªËØ¡£SortedSetÊÇÒ»¸ö°´ÕÕÉýÐòÅÅÁÐÔªËصÄSet¡£
* List£ºÊÇÒ»¸öÓÐÐòµÄ¼¯ºÏ£¬¿ÉÒÔ°üº¬Öظ´µÄÔªËØ¡£ÌṩÁË°´Ë÷Òý·ÃÎʵķ½Ê½¡£
* Map£º°üº¬ÁËkey-value¶Ô¡£Map²»ÄÜ°üº¬Öظ´µÄkey¡£SortedMapÊÇÒ»¸ö°´ÕÕÉýÐòÅÅÁÐkeyµÄMap¡£
1.1.2. ArrayList
* ArrayList£ºÎÒÃÇ¿ÉÒÔ½«Æä¿´×÷ÊÇÄܹ»×Ô¶¯Ôö³¤ÈÝÁ¿µÄÊý×é¡£
* ÀûÓÃArrayListµÄtoArray()·µ»ØÒ»¸öÊý×é¡£
* Arrays.asList()·µ»ØÒ»¸öÁÐ±í¡£
* µü´úÆ÷(Iterator) ¸øÎÒÃÇÌṩÁËÒ»ÖÖͨÓõķ½Ê½À´·ÃÎʼ¯ºÏÖеÄÔªËØ
1.1.3. CollectionÀà
* ÅÅÐò£ºCollections.sort()
£¨1£©×ÔÈ»ÅÅÑ°(natural ordering )£»
£¨2£©ÊµÏֱȽÏÆ÷(Comparator)½Ó¿Ú¡£
* È¡×î´óºÍ×îСµÄÔªËØ£ºCollections.max()¡¢Collections.min()¡£
* ÔÚÒÑÅÅÐòµÄListÖÐËÑË÷Ö¸¶¨µÄÔªËØ£ºCollectons.binarySearch()¡£
1.1.4. LinkedList
* LinkedListÊDzÉÓÃË«ÏòÑ»·Á´±íʵÏֵġ£
* ÀûÓÃLinkedListʵÏÖÕ»(stack)¡¢¶ÓÁÐ(queue)¡¢Ë«Ïò¶ÓÁÐ(double-ended queue )
1.1.5. Êý¾Ý½á¹¹
Ò»°ã½«Êý¾Ý½á¹¹·ÖΪÁ½´óÀࣺÏßÐÔÊý¾Ý½á¹¹ºÍ·ÇÏßÐÔÊý¾Ý½á¹¹¡£ÏßÐÔÊý¾Ý½á¹¹ÓÐÏßÐÔ±í¡¢Õ»¡¢¶ÓÁС¢´®¡¢Êý×éºÍÎļþ£»·ÇÏßÐÔÊý¾Ý½á¹¹ÓÐÊ÷ºÍͼ
1.1.6. ÏßÐÔ±í
* ÏßÐÔ±íµÄÂß¼½á¹¹ÊÇn¸öÊý¾ÝÔªËصÄÓÐÏÞÐòÁÐ:
(a1, a2 ,a3,…an)
nΪÏßÐÔ±íµÄ³¤¶È(n≥0)£¬n=
Ïà¹ØÎĵµ£º
//java½âÎö.mdbÎļþµÄ±íÃû¼¯ºÏ
this.tableList.clear();
conn = null;
st = null;
rs = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url ="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ="+dbName;// ......
Java¹æÔòÒýÇ湤×÷ÔÀí¼°ÆäÓ¦ÓÃ
¡¡¡¡Õª Òª Java¹æÔòÒýÇæÊÇÒ»ÖÖǶÈëÔÚJava³ÌÐòÖеÄ×é¼þ£¬ËüµÄÈÎÎñÊǰѵ±Ç°Ìá½»¸øÒýÇæµÄJavaÊý¾Ý¶ÔÏóÓë¼ÓÔØÔÚÒýÇæÖеÄÒµÎñ¹æÔò½øÐвâÊԺͱȶԣ¬¼¤»îÄÇЩ·ûºÏµ±Ç°Êý¾Ý״̬ϵÄÒµÎñ¹æÔò£¬¸ù¾ÝÒµÎñ¹æÔòÖÐÉùÃ÷µÄÖ´ÐÐÂß¼£¬´¥·¢Ó¦ÓóÌÐòÖжÔÓ¦µÄ²Ù×÷¡£
¡¡¡¡ÒýÑÔ
¡¡¡¡Ä¿Ç°£¬JavaÉçÇøÍƶ¯²¢·¢Õ¹Á ......
from: http://www.leftworld.net/online/java/index.html
<Thinking in java>¸½Â¼C Java±à³Ì¹æÔò
±¾¸½Â¼°üº¬ÁË´óÁ¿ÓÐÓõĽ¨Ò飬°ïÖú´ó¼Ò½øÐеͼ¶³ÌÐòÉè¼Æ£¬²¢ÌṩÁË´úÂë±àдµÄÒ»°ãÐÔÖ¸µ¼£º
(1) ÀàÃûÊ××ÖĸӦ¸Ã´óд¡£×ֶΡ¢·½·¨ÒÔ¼°¶ÔÏ󣨾ä±ú£©µÄÊ××ÖĸӦСд¡£¶ÔÓÚËùÓбêʶ·û£¬ÆäÖаüº¬µÄËùÓе¥´Ê¶¼Ó¦½ô¿¿ÔÚÒ»Æð£ ......
(Ò») ÓйؽéÉܶþ½øÖÆÊý¾ÝÔÚWSÖд«ËÍ,¿ÉÒÔÓÐÁ½ÖÖ·½Ê½:
1 °ÑÊý¾ÝÖ±½Ó×÷ΪxmlÎĵµÖÐijԪËصÄ×Ö½ÚÁ÷,×÷ΪXML½âÎöÆ÷Òª½âÎöµÄÒ»²¿·Ö,ºÜÃ÷ÏÔÕâÖÖ·½Ê½±È½ÏµÍЧ.
2 ¶þ½øÖÆÊý¾Ý×÷Ϊ¸½¼þ,×÷Ϊ´øÍâ(out of band)Êý¾ÝËæͬXML·¢ËÍ, Ìá¸ßÁËЧÂÊ.Ä¿Ç°ÕâÀà´¦ÀíÓм¸¸ö¹æ·¶:DIME(Ö±½Ó Internet ÏûÏ¢·â×°),Õâ¸öÊý¾Ý°ü×°¸ñʽ¼°Æä´¦Àí,Ö»Ó ......