javaÕýÔò±í´ïʽѧϰ
1.×Ö·û
x ×Ö·û x¡£ÀýÈça±íʾ×Ö·ûa
\\ ·´Ð±Ïß×Ö·û¡£ÔÚÊéдʱҪдΪ\\\\¡££¨×¢Ò⣺ÒòΪjavaÔÚµÚÒ»´Î½âÎöʱ,°Ñ\\\\½âÎö³ÉÕýÔò±í´ïʽ\\£¬ÔÚµÚ¶þ´Î½âÎöʱÔÙ½âÎöΪ\£¬ËùÒÔ·²ÊDz»ÊÇ1.1Áоٵ½µÄתÒå×Ö·û£¬°üÀ¨1.1µÄ\\,¶øÓÖ´øÓÐ\µÄ¶¼ÒªÐ´Á½´Î£©
\0n ´øÓа˽øÖÆÖµ 0µÄ×Ö·û n (0 <= n <= 7)
\0nn ´øÓа˽øÖÆÖµ 0µÄ×Ö·û nn (0 <= n <= 7)
\0mnn ´øÓа˽øÖÆÖµ 0µÄ×Ö·û mnn£¨0 <= m <= 3¡¢0 <= n <= 7£©
\xhh ´øÓÐÊ®Áù½øÖÆÖµ 0xµÄ×Ö·û hh
\uhhhh ´øÓÐÊ®Áù½øÖÆÖµ 0xµÄ×Ö·û hhhh
\t ÖÆ±í·û ('\u0009')
\n ÐÂÐУ¨»»ÐУ©·û ('\u000A')
\r »Ø³µ·û ('\u000D')
\f »»Ò³·û ('\u000C')
\a ±¨¾¯ (bell) ·û ('\u0007')
\e תÒå·û ('\u001B')
\cx ¶ÔÓ¦ÓÚ x µÄ¿ØÖÆ·û
2.×Ö·ûÀà
[abc] a¡¢b»ò c£¨¼òµ¥Àࣩ¡£ÀýÈç[egd]±íʾ°üº¬ÓÐ×Ö·ûe¡¢g»òd¡£
[^abc] ÈκÎ×Ö·û£¬³ýÁË a¡¢b»ò c£¨·ñ¶¨£©¡£ÀýÈç[^egd]±íʾ²»°üº¬×Ö·ûe¡¢g»òd¡£
[a-zA-Z] aµ½ z»ò Aµ½ Z£¬Á½Í·µÄ×Öĸ°üÀ¨ÔÚÄÚ£¨·¶Î§£©
[a-d[m-p]] aµ½ d»ò mµ½ p£º[a-dm-p]£¨²¢¼¯£©
[a-z&&[def]] d¡¢e»ò f£¨½»¼¯£©
[a-z&&[^bc]] aµ½ z£¬³ýÁË bºÍ c£º[ad-z]£¨¼õÈ¥£©
[a-z&&[^m-p]] aµ½ z£¬¶ø·Ç mµ½ p£º[a-lq-z]£¨¼õÈ¥£©
3.Ô¤¶¨Òå×Ö·ûÀà(×¢Òⷴб¸ÜҪдÁ½´Î£¬ÀýÈç\dдΪ\\d)ÈκÎ×Ö·û
£¨ÓëÐнáÊø·û¿ÉÄÜÆ¥ÅäÒ²¿ÉÄܲ»Æ¥Å䣩
\d Êý×Ö£º[0-9]
\D ·ÇÊý×Ö£º [^0-9]
\s ¿Õ°××Ö·û£º[ \t\n\x0B\f\r]
\S ·Ç¿Õ°××Ö·û£º[^\s]
\w µ¥´Ê×Ö·û£º[a-zA-Z_0-9]
\W ·Çµ¥´Ê×Ö·û£º[^\w]
4.POSIX ×Ö·ûÀࣨ½ö US-ASCII)(×¢Òⷴб¸ÜҪдÁ½´Î£¬ÀýÈç\p{Lower}дΪ\\p{Lower})
\p{Lower} Сд×Öĸ×Ö·û£º[a-z]¡£
\p{Upper} ´óд×Öĸ×Ö·û£º[A-Z]
\p{ASCII} ËùÓÐ ASCII£º[\x00-\x7F]
\p{Alpha} &n
Ïà¹ØÎĵµ£º
4£® ¸ßÐÔÄÜ
¡¡¡¡ËäÈ»javaÊǽâÊÍÖ´Ðе쬵«ËüÈÔÈ»¾ßÓзdz£¸ßµÄÐÔÄÜ£¬ÔÚÒ»Ð©ÌØ¶¨µÄCPUÉÏ£¬java×Ö½ÚÂë¿ÉÒÔ¿ìËÙµÄת»»³ÉΪ»úÆ÷Âë½øÐÐÖ´ÐС£¶øÇÒjava×Ö½ÚÂë¸ñʽµÄÉè¼Æ¾ÍÊÇÕë¶Ô»úÆ÷ÂëµÄת»»£¬Êµ¼Êת»»Ê±Ï൱¼ò±ã£¬×Ô¶¯µÄ¼Ä´æÆ÷·ÖÅäÓë±àÒëÆ÷¶Ô×Ö½ÚÂëµÄһЩÓÅ»¯¿Éʹ֮Éú³É¸ßÖÊÁ¿µÄ´úÂë¡£Ëæ×ÅjavaÐéÄâ»úµÄ¸Ä½øºÍ"¼´Ê±±àÒë"£¨just in ......
ת javaÉú³ÉexeÎļþ
ÎÄÕ·ÖÀà:Java±à³Ì
¶ÔÓÚ×÷Java×ÀÃæÓ¦ÓÃÀ´Ëµ£¬±È½Ï·³È˵ľÍÊǰ²×°²¿ÊðÎÊÌ⣬¿Í»§¶ËÊÇ·ñ°²×°ÓÐjre¡¢jre°æ±¾ÎÊÌâ¡¢jreÈ¥ÄÄÏÂÔØ¡¢ÈçºÎÓÃjreÆô¶¯ÄãµÄJavaÓ¦Ó㿲»ÒªËµ¸Õ½Ó´¥µçÄÔµÄÈË£¬¾ÍËãÊDZȽÏÊìϤµçÄÔ£¬Èç¹ûûÓнӴ¥¹ýJava,Ãæ¶ÔÒ»¸öJavaÓ¦Óã¬ÈçºÎÔÚWindowsÏÂÆô¶¯Ëü£¬¹À¼Æ¶¼»áÕÛÌÚ°ëÌì¡£Èç¹û²»ÊÇÒòΪÕ⸠......
1. ÏÈдһ¸öSingletonµÄclass
package stone;
public class Singleton {
private static Singleton instance;
private Singleton() {}
public static Singleton getInstance(){
if(instance==null)
&n ......
²»¹ÜÄãÐŲ»ÐÅ£¬¼´Ê¹¶àôÊìÁ·±à³ÌµÄÈËÔ±ÔÚcodingµÄʱºò¶¼»á³öÏÖÒâÏë²»µ½µÄbug¡£ÔÚÉÏÆªÎÄÕÂÖÐÎÒÔøÌáµ½£¬bugµÄÔì³ÉÊǶà¸ö·½ÃæµÄ×ۺϽá¹û£¬ÓÐЩbugÊÇ¿ÉÒÔÐÞ¸´µÄ£¬µ«ÊÇÓÐЩÂß¼ÉϵÄbugÒªÐÞ¸´¿É²»ÊÇÄÇôÈÝÒ×µÄÊÂÇ飬¾ÍÏñÎÒÃÇ×ö´íÁËÒ»¼þÊÂÇ飬Èç¹û²»È¥´Ó¸ù±¾ÉϸÄÕý¾Í»á·¸¸ü´óµÄ´íÎóÒ»Ñù£¬ÓÐʱºòbugÒ²ÊÇÒ»¸ö»ýÀ ......
Ò»¸ö¼òµ¥µÄË«»÷¾ÍÄÜÔËÐÐjarÎļþµÄ´ò°ü¹ý³Ì:
http://blog.csdn.net/ihc523/archive/2009/10/11/4636832.aspx
eclipseµ¼³öjarÎļþÔÙ½«Ëüת»»³Éexe¿ÉÖ´ÐÐÎļþ:
http://hi.baidu.com/%C4%CF%BA%BD%CC%EC%CF%C2/blog/item/1601a381ac9af9d1bd3e1e3d.html
´òJar°üµÄÒ»¸öEclipse²å¼þFatJar:
http://blog.csdn.net/lqsmn613/ar ......