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

JavaÕýÔò±í´ïʽÈëÃÅ

ÖÚËùÖÜÖª£¬ÔÚ³ÌÐò¿ª·¢ÖУ¬ÄÑÃâ»áÓöµ½ÐèҪƥÅä¡¢²éÕÒ¡¢Ìæ»»¡¢ÅжÏ×Ö·û´®µÄÇé¿ö·¢Éú£¬¶øÕâЩÇé¿öÓÐʱÓֱȽϸ´ÔÓ£¬Èç¹ûÓô¿±àÂ뷽ʽ½â¾ö£¬ÍùÍù»áÀ˷ѳÌÐòÔ±µÄʱ¼ä¼°¾«Á¦¡£Òò´Ë£¬Ñ§Ï°¼°Ê¹ÓÃÕýÔò±í´ïʽ£¬±ã³ÉÁ˽â¾öÕâһì¶ÜµÄÖ÷ÒªÊֶΡ£
 ´ó¼Ò¶¼ÖªµÀ£¬ÕýÔò±í´ïʽÊÇÒ»ÖÖ¿ÉÒÔÓÃÓÚģʽƥÅäºÍÌæ»»µÄ¹æ·¶£¬Ò»¸öÕýÔò±í´ïʽ¾ÍÊÇÓÉÆÕͨµÄ×Ö·û£¨ÀýÈç×Ö·ûaµ½z£©ÒÔ¼°ÌØÊâ×Ö·û£¨Ôª×Ö·û£©×é³ÉµÄÎÄ×ÖÄ£
ʽ£¬ËüÓÃÒÔÃèÊöÔÚ²éÕÒÎÄ×ÖÖ÷Ìåʱ´ýÆ¥ÅäµÄÒ»¸ö»ò¶à¸ö×Ö·û´®¡£ÕýÔò±í´ïʽ×÷Ϊһ¸öÄ£°å£¬½«Ä³¸ö×Ö·ûģʽÓëËùËÑË÷µÄ×Ö·û´®½øÐÐÆ¥Åä¡£
  ×Ô´Ójdk1.4ÍƳöjava.util.regex°ü£¬¾ÍΪÎÒÃÇÌṩÁ˺ܺõÄJAVAÕýÔò±í´ïʽӦÓÃƽ̨¡£
 
 ÒòΪÕýÔò±í´ïʽÊÇÒ»¸öºÜÅÓÔÓµÄÌåϵ£¬ËùÒÔÎÒ½öÀý¾ÙЩÈëÃŵĸÅÄ¸ü¶àµÄÇë²ÎÔÄÏà¹ØÊé¼®¼°×ÔÐÐÃþË÷¡£
\\ ·´Ð±¸Ü
\t ¼ä¸ô ('\u0009')
\n »»ÐÐ ('\u000A')
\r »Ø³µ ('\u000D')
\d Êý×Ö µÈ¼ÛÓÚ[0-9]
\D ·ÇÊý×Ö µÈ¼ÛÓÚ[^0-9]
\s ¿Õ°×·ûºÅ [\t\n\x0B\f\r]
\S ·Ç¿Õ°×·ûºÅ [^\t\n\x0B\f\r]
\w µ¥¶À×Ö·û [a-zA-Z_0-9]
\W ·Çµ¥¶À×Ö·û [^a-zA-Z_0-9]
\f »»Ò³·û
\e Escape
\b Ò»¸öµ¥´ÊµÄ±ß½ç
\B Ò»¸ö·Çµ¥´ÊµÄ±ß½ç
\G Ç°Ò»¸öÆ¥ÅäµÄ½áÊø
^ΪÏÞÖÆ¿ªÍ·
^java     Ìõ¼þÏÞÖÆΪÒÔJavaΪ¿ªÍ·×Ö·û
$ΪÏÞÖƽáβ
java$     Ìõ¼þÏÞÖÆΪÒÔjavaΪ½áβ×Ö·û
.  Ìõ¼þÏÞÖƳý\nÒÔÍâÈÎÒâÒ»¸öµ¥¶À×Ö·û
java..     Ìõ¼þÏÞÖÆΪjavaºó³ý»»ÐÐÍâÈÎÒâÁ½¸ö×Ö·û
¼ÓÈëÌض¨ÏÞÖÆÌõ¼þ¡¸[]¡¹
[a-z]     Ìõ¼þÏÞÖÆÔÚСдa to z·¶Î§ÖÐÒ»¸ö×Ö·û
[A-Z]     Ìõ¼þÏÞÖÆÔÚ´óдA to Z·¶Î§ÖÐÒ»¸ö×Ö·û
[a-zA-Z] Ìõ¼þÏÞÖÆÔÚСдa to z»ò´óдA to Z·¶Î§ÖÐÒ»¸ö×Ö·û
[0-9]     Ìõ¼þÏÞÖÆÔÚСд0 to 9·¶Î§ÖÐÒ»¸ö×Ö·û
[0-9a-z] Ìõ¼þÏÞÖÆÔÚСд0 to 9»òa to z·¶Î§ÖÐÒ»¸ö×Ö·û
[0-9[a-z]] Ìõ¼þÏÞÖÆÔÚСд0 to 9»òa to z·¶Î§ÖÐÒ»¸ö×Ö·û(½»¼¯)
[]ÖмÓÈë^ºó¼ÓÔÙ´ÎÏÞÖÆÌõ¼þ¡¸[^]¡¹
[^a-z]     Ìõ¼þÏÞÖÆÔÚ·ÇСдa to z·¶Î§ÖÐÒ»¸ö×Ö·û
[^A-Z]     Ìõ¼þÏÞÖÆÔÚ·Ç´óдA to Z·¶Î§ÖÐÒ»¸ö×Ö·û
[^a-zA-Z] Ìõ¼þÏÞÖÆÔÚ·ÇСдa to z»ò´óдA to Z·¶Î§ÖÐÒ»¸ö×Ö·û
[^0-9]     Ìõ¼þÏÞÖÆÔÚ·ÇСд0 to 9·¶Î§ÖÐÒ»¸ö×Ö·û
[^0-9a-z] Ìõ¼þÏÞÖÆÔÚ·ÇСд0 to 9»òa to z·¶Î§ÖÐÒ»¸ö×Ö·û
[^0-9[


Ïà¹ØÎĵµ£º

java²¢·¢±à³Ìʵ¼ù±Ê¼Ç


1, ±£Ö¤Ḭ̈߳²È«µÄÈýÖÖ·½·¨:
    a, ²»Òª¿çÏ̷߳ÃÎʹ²Ïí±äÁ¿
    b, Ê¹¹²Ïí±äÁ¿ÊÇfinalÀàÐ͵Ä
    c, ½«¹²Ïí±äÁ¿µÄ²Ù×÷¼ÓÉÏͬ²½
2, Ò»¿ªÊ¼¾Í½«ÀàÉè¼Æ³ÉḬ̈߳²È«µÄ, ±ÈÔÚºóÆÚÖØÐÂÐÞ¸´Ëü,¸üÈÝÒ×.
3, ±àд¶àÏ̳߳ÌÐò, Ê×Ïȱ£Ö¤Ë ......

EclipseÖн«JavaÏîÄ¿£¨ÒýÓÃÁ˵ÚÈý·½°ü) ´ò°üΪjar

Èç¹û×Ô¼ºµÄjava projectÖÐÐèÒªÒýÓöîÍâµÄjar°ü×÷Ϊ×ÊÔ´Îļþ£¬ÄÇôÐèÒª×Ô¶¨ÒåÅäÖÃÎļþMANIFEST.MF ,ÀýÈ磺
Manifest-Version: 1.0
Class-Path: lib\crimson.jar lib\jbcl.jar lib\junit.jar lib\log4j-1.2.13.jar lib\mysql-connector-java-3.1.13-bin.jar
Main-Class: src.YourMainClassName
ÆäÖеÄClass-Path¾ÍÖ¸¶¨ÁËÍ ......

JavaÖеÄÈÝÆ÷

ÏßÐÔ±í£¬Á´±í£¬¼¯ºÏ£¬¹þÏ£±íÊdz£ÓõÄÊý¾Ý½á¹¹£¬ÔÚ½øÐÐJava¿ª·¢Ê±£¬JDKÒѾ­ÎªÎÒÃÇÌṩÁËһϵÁÐÏàÓ¦µÄÀàÀ´ÊµÏÖ»ù±¾µÄÊý¾Ý½á¹¹¡£ÕâЩÀà¾ùÔÚjava.util°üÖС£
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Ö÷Òª·ÖΪÁ½¸ö·ÖÖ§£º
Collectio ......

javaµÄ»ù±¾Ë¼Ïë

JavaÖеķ½·¨µ÷ÓÃÖвÎÊý´«µÝÓÐÁ½ÖÖ£¬Ò»¸öÊǶÔÓÚ²ÎÊýÊÇ»ù±¾ÀàÐ͵ÄʹÓõÄÊÇÖµ´«µÝ£¨Ö±½Ó´«²ÎÊýµÄÖµ£©£¬ÁíÒ»¸öÊÇÒýÓô«µÝ£¬ËüÊÇÓÃÓÚ²ÎÊýÊÇÀàµÄ¶ÔÏó£¬Ëü´«µÝµÄÊÇÕâ¸ö¶ÔÏóµÄÒýÓá£
ÃæÏò¶ÔÏóµÄ˼Ïëanything is Object£¨ÍòÎï½Ô¶ÔÏ󣩳éÏ󣬴ӶԾßÌåµÄ¶ÔÏóÖгéÈ¡ÓÐÓÃÐÅÏ¢¡£¶ÔÏóÓÐÆä¹ÌÓÐÊôÐÔ£¬¶ÔÏóµÄ·½·¨£¬¼´¶ÔÏóµÄÐÐΪ£¨¶ÔÏóÄÜ×öʲ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ