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

JavaÕýÔò±í´ïʽ(×ܽá¶þ)

±¾´ÎÖ÷ÒªÒÔÀý×ÓΪÖ÷£º
 1.Æ¥ÅäͼÏñ /**
* Æ¥ÅäͼÏó <br>
* ¸ñʽ: /Ïà¶Ô·¾¶/ÎļþÃû.ºó׺ (ºó׺Ϊgif,dmp,png)
* Æ¥Åä : /forum/head_icon/admini2005111_ff.gif »ò admini2005111.dmp<br>
* ²»Æ¥Åä: c:/admins4512.gif
*/
public static final String icon_regexp = "^(/{0,1}\\w){1,}\\.(gif|dmp|png|jpg)$|^\\w{1,}\\.(gif|dmp|png|jpg)$";
2.Æ¥ÅäÓʼþ
/**
* Æ¥ÅäemailµØÖ· <br>
* ¸ñʽ: XXX@XXX.XXX.XX
* Æ¥Åä : foo@bar.com »ò foobar@foobar.com.au <br>
* ²»Æ¥Åä: foo@bar »ò $$$@bar.com
*/
public static final String email_regexp = "(?:\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3}$)";
3.Æ¥Åä²¢ÌáÈ¡URL
/**
* Æ¥ÅäÆ¥Åä²¢ÌáÈ¡url <br>
* ¸ñʽ: XXXX://XXX.XXX.XXX.XX/XXX.XXX?XXX=XXX
* Æ¥Åä : http://www.suncer.com »ònews://www<br>
* ÌáÈ¡(MatchResult matchResult=matcher.getMatch()): matchResult.group(0)=
* http://www.suncer.com:8080/index.html?login=true matchResult.group(1) =
* http matchResult.group(2) = www.suncer.com matchResult.group(3) = :8080
* matchResult.group(4) = /index.html?login=true
* ²»Æ¥Åä: c:\window
*/
public static final String url_regexp = "(\\w+)://([^/:]+)(:\\d*)?([^#\\s]*)";
4.Æ¥Åä²¢ÌáÈ¡http
/**
* Æ¥Åä²¢ÌáÈ¡http <br>
* ¸ñʽ: http://XXX.XXX.XXX.XX/XXX.XXX?XXX=XXX »ò ftp://XXX.XXX.XXX »ò
* https://XXX
* Æ¥Åä : http://www.suncer.com:8080/index.html?login=true<br>
* ÌáÈ¡(MatchResult matchResult=matcher.getMatch()): matchResult.group(0)=
* http://www.suncer.com:8080/index.html?login=true matchResult.group(1) =
* http matchResult.group(2) = www.suncer.com matchResult.group(3) = :8080
* matchResult.group(4) = /index.html?login=true
* ²»Æ¥Åä: news://www
*/
public static final String http_regexp = "(http|https|ftp)://([^/:]+)(:\\d*)?([^#\\s]*)";
5.Æ¥ÅäÈÕÆÚ
/**
* Æ¥ÅäÈÕÆÚ <br>
* ¸ñʽ(Ê×λ²»Îª0): XXXX-XX-XX »ò XXXX XX XX »ò XXXX-X-X <br>
* ·¶Î§:1900--2099 <br>
* Æ¥Åä : 2


Ïà¹ØÎĵµ£º

ѸÀ×JAVA±ÊÊÔ+ÃæÊÔ+ÉÏ»ú

ѸÀ×ÃæÊÔ»ØÀ´£¬ÓÃÁËÕûÕûÒ»ÏÂÎ磨²»ÖªµÀÔõô˵ÁË£¬ÆäÖеȴýʱ¼ä¶¼¿ì2СʱÁË£©£¬×Ô¼º¸Ð¾õ±ÊÊÔºÍÉÏ»ú»¹¿ÉÒÔ£¬µ«¼¼ÊõÃæ̸ÕâÒ»¹Ø´ðµÃ²»Ì«ºÃ£¬ÏÖÔÚÔٴθоõ»¥ÁªÍø¹«Ë¾ÓëÒ»°ãÈí¼þ¹«Ë¾µÄÇø±ðÁË£¬ÆäÖÐÒ»µã¾ÍÊÇ»¥ÁªÍøÓ¦ÓÃÔÚÐÔÄÜÉÏÒªÇóºÜ¸ß£¬Ì¸ÁËÒ»¸öСʱ´ó²¿·ÖÌâÄ¿¸Ð¾õ¶¼ÔÚ̸ÂÛÐÔÄÜÎÊÌ⣬×Ô¼ºÔÚ·½ÃæÒ»Ö±ÊÇÈõÏº¹°¡£º£¨
×Ðϸ»ØÒäÁË ......

java·ºÐÍÏê½â

·ºÐÍ£¨Generic type »òÕßgenerics£©ÊÇ¶Ô Java ÓïÑÔµÄÀàÐÍϵͳµÄÒ»ÖÖÀ©Õ¹£¬ÒÔÖ§³Ö´´½¨¿ÉÒÔ°´ÀàÐͽøÐвÎÊý»¯µÄÀà¡£¿ÉÒÔ°ÑÀàÐͲÎÊý¿´×÷ÊÇʹÓòÎÊý»¯ÀàÐÍʱָ¶¨µÄÀàÐ͵ÄÒ»¸öռλ·û£¬¾ÍÏñ·½·¨µÄÐÎʽ²ÎÊýÊÇÔËÐÐʱ´«µÝµÄÖµµÄռλ·ûÒ»Ñù¡£
¿ÉÒÔÔÚ¼¯ºÏ¿ò¼Ü£¨Collection framework£©Öп´µ½·ºÐ͵Ķ¯»ú¡£ÀýÈ磬MapÀàÔÊÐíÄúÏòÒ»¸öMapÌí ......

Java µÄ £ÀOverride ±ê¼ÇµÄ¼æÈÝÇé¿ö

ÔÚ Java 5 »·¾³ÖУ¬Èç¹ûÓÃÀàAȥʵÏÖ½Ó¿ÚB (A implements B)£¬ÔÚ Java 5 µÄƽ̨Ï£¬A ʵÏֵķ½·¨ÃûÇ°ÊDz»ÄÜÌí¼Ó @Override ±ê¼ÇµÄ£¬·ñÔò»á±¨ÈçÏÂͼËùʾµÄ´íÎóÌáʾ¶øÎÞ·¨±àÒ룺
{{----}}16172
¾­¹ý³¢ÊÔºÍ×ܽᣬµÃ³öÏÂ±í¡£
Version
Java 5
Java 6
³¬ÀàÐÍÊÇ interface£¬×ÓÀàÐÍÖØдµÄ·½·¨ÄÜ·ñÌí¼Ó@Override ±ê¼Ç
·ñ
ÊÇ
......

JavaÄÚ´æ¹ÜÀí(¶þ¡¢JavaÀ¬»ø»ØÊÕ)

¶þ¡¢JavaÀ¬»ø»ØÊÕ
1. JVMÔËÐл·¾³ÖÐÀ¬»ø¶ÔÏóµÄ¶¨Òå
     Ò»¸ö¶ÔÏó´´½¨ºó±»·ÅÖÃÔÚJVMµÄ¶ÑÄÚ´æÖУ¬µ±ÓÀÔ¶²»ÔÙÒýÓÃÕâ¸ö¶ÔÏóʱ£¬Ëü½«±»JVMÔÚ¶ÑÄÚ´æÖлØÊÕ¡£»ò  µ±¶ÔÏóÔÚJVMÔËÐпռäÖÐÎÞ·¨Í¨¹ý¸ù¼¯ºÏ(root set)µ½´ïʱ£¬Õâ¸ö¶ÔÏó¾Í±»³ÆΪÀ¬»ø¶ÔÏó¡£
2. ¶ÑÄÚ´æ
* ÔÚJVMÆô¶¯Ê±±»´´½¨£»¶ÑÄÚ´æÖÐËù´æ´¢µ ......

JavaÕýÔò±í´ïʽ(×ܽáÒ»)

1.ÕýÔò±í´ïʽ½á¹¹¼ò½é£º
С֪ʶ£º{}¡¡¶¨ÒåÁËÒ»¸ö·¶Î§¡¡ [] ¶¨ÒåÁËÒ»¸ö×Ö·ûÀà¡¡() ¶¨ÒåÁËÒ»¸ö×é
*Ç°Ãæ³öÏÖ0´ÎÒÔÉÏ   +¡¡Ç°ÃæÆ¥ÅäÒ»´ÎÒÔÉÏ¡¡?Ç°Ãæ³öÏÖ0´Î»òÒ»´Î
1).×Ö·û£º
x------×Ö·ûx
\\-----·´Ð±¸Ü
\0n----Ê®½øÖÆÊý (0 <= n <= 7)
\0nn---Ê®½øÖÆÊý0nn (0 <= n <= 7)
\0mnn--Ê®½øÖÆÊý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ