Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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[a-z]] Ìõ¼þÏÞÖÆÔÚ·ÇСд0 to 9»òa to z·¶Î


Ïà¹ØÎĵµ£º

javaʵÏÖzipÎļþѹËõ£¬½âѹ

Õ⼸Ìì¿´ÁËÍøÉÏһЩǰ±²µÄ´úÂ룬×Ô¼º¶ÔJavaʵÏÖzipÎļþµÄ½âѹ£¬Ñ¹ËõÓÐÒ»µãÀí½â£¬¹ÊдÏÂÁô×ÅÒÔºó²Î¿¼¡£
ΪÁË´¦ÀíÖÐÎÄÂÒÂëÎÊÌ⣬ʹÓÃant.jar°ü¡£
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
......

ÍƼö¼¸±¾javaѧϰµÄ¡°´ó±¦¡±£¨²»¶Ï¸üУ©


java se£º
1.javaºËÐļ¼Êõ£¨µÚÆ߰棩£¨ºÜºÃµÄÈëÃÅÊé¼®£¬ÓÐÁ½±¾£©
2.java±à³Ì˼Ï루µÚËİ棩£¨ÎÒ¿´¹ýµÚÈý°æ£¬µÚËÄ°æ¿´ÁËÒ»µãÓ¢Îĵģ¬¾õµÃÕâ±¾Ê黹ÊÇÊʺÏÓлù´¡µÄjavaѧϰÕß¹®¹Ì»ù´¡£¬Ò²¾ÍÊÇ˵ҪÏë´òÀλù´¡¾Í¿´ÍêºËÐļ¼Êõ¿´Õâ¸ö~£©
3.java jdkʵÀý±¦µä£¨Õâ±¾ÊéÀX±¾°üº¬ÁËËùÓÐÓï·¨µÄÀý³Ì£©
4.java se6.0±à³ÌÖ¸ÄÏ£¨ºñʵ ......

java»ù´¡

1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
×÷ÓÃÓò µ±Ç°Àà ͬһpackage ×ÓËïÀà ÆäËûpackage
public √ √ √ √
protected √ √ √ ×
²»Ð´Ê±Ä¬ÈÏΪfriendly √ √ × ×
private √ × × ×
2¡¢ArrayListºÍVect ......

Java MEµÄÓÅ»¯

ÎÄÕÂÒ»
ÎÄÕ¶þ
ÎÄÕÂÈý
Ô­ÎÄ
J2ME¿ª·¢ÓÅ»¯
1¡¢²Â²âVectorµÄ³¤¶È
2¡¢Ê¹Óþֲ¿±äÁ¿
3¡¢±ÜÃâ×Ö·û´®±È½Ï
4¡¢½«±äÁ¿ºÍ·½·¨ÉùÃ÷ΪfinalºÍstatic£¬ÒÔ¼Ó¿ì·ÃÎÊ
5¡¢Ê¹ÓöèÐÔʵÀý»¯
6¡¢´¦ÀíoutofmemoryError´íÎó
7¡¢Ê¹ÓÃÊý×é¶ø²»ÊǶÔÏó
8¡¢µ¹¼ÆÖÁÁãµÄµü´úÑ­»·£¬ÒòΪºÍÁã±È½Ï½«»á½Ï¿ì
9¡¢°ÑÒýÓÃÉèÖÃΪNULL
10¡¢×î´óÏÞ¶ÈµÄ ......

JAVAÄÚ´æÎļþÓ³Éä

ÓÐÈçÏÂÇé¿öÏ¿ÉÒÔÓõ½ÄÚ´æÎļþÓ³Éä¼¼Êõ½â¾öÎÊÌâ:
 1.²»Òª¸´ÖÆÎļþÖÐËùÓеÄÊý¾Ý£¬Ö»ÐèÒªÐÞ¸ÄÎļþÖоֲ¿µÄÊý¾Ý¡£
 2.²¢ÐÐ\·Ö¶Î´¦Àí´óÎļþ¡£
  ÈçÏ´úÂëʾʹÓÃjavaNIO¾Ö²¿ÐÞ¸ÄÎļþÖÐÖ¸¶¨Î»ÖõIJ¿·ÖÊý¾Ý£º
Java´úÂë
/**  
     * ÐÞ¸ÄÎļþÖеÄijһ²¿·ÖµÄÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ