JavaÖеÄPatternÀàºÍMatcherÀà
¼ò¶øÑÔÖ®£¬ÕâÁ½¸öÀàÊÇÓÃÀ´ÀûÓÃÕýÔò±í´ïʽÑéÖ¤×Ö·û´®ÓÐЧÐԵġ£
PatternÀàÓÃÀ´¶¨ÒåÕýÔò±í´ïʽ¹æÔò£¬MatcherÀàÓÃÀ´¶¨ÒåÒªÑéÖ¤µÄ×Ö·û´®¡£
Ó÷¨£º
Pattern p = Pattern.compile("a*b");
Matcher m = p.matcher("aaaaab");
boolean b = m.matches();
µ±È»£¬Ò²¿ÉÒÔÖ±½ÓÓÃPatternÀàÖ±½ÓÑéÖ¤£¬Ó÷¨£º
boolean b = Pattern.matches("a*b", "aaaaab");
ÒÔÉÏÊÇÕâÁ½¸öÀàµÄ×î¼òµ¥Ó÷¨£¬ÆäËûÓ÷¨£¬ÒÔºóÂýÂý×ܽᡣ
Ïà¹ØÎĵµ£º
а²×°ÁË JDK 6 µÄ³ÌÐòÔ±ÃÇÒ²Ðí»á·¢ÏÖ£¬³ýÁË´«Í³µÄ bin¡¢jre µÈĿ¼£¬JDK 6 ÐÂÔöÁËÒ»¸öÃûΪ db µÄĿ¼¡£Õâ±ãÊÇ Java 6 µÄгÉÔ±£ºJava DB¡£ÕâÊÇÒ»¸ö´¿ Java ʵÏÖ¡¢¿ªÔ´µÄÊý¾Ý¿â¹ÜÀíϵͳ£¨DBMS£©£¬Ô´ÓÚ Apache Èí¼þ»ù½ð»á£¨ASF£©ÃûϵÄÏîÄ¿ Derby¡£ËüÖ»ÓÐ 2MB ´óС£¬¶Ô±È¶¯éüÉÏ G µÄÊý¾Ý¿âÀ´Ëµ¿ÉνÐäÕä¡£µ«Õâ²¢²»·Á° Derby ......
JavaµÄ¿çƽ̨ÊÇͨ¹ýJavaÐéÄâ»ú£¨JVM£©À´ÊµÏֵġ£
JavaÔ´ÎļþµÄ±àÒë¹ý³Ì
JavaÓ¦ÓóÌÐòµÄ¿ª·¢ÖÜÆÚ°üÀ¨±àÒë¡¢ÏÂÔØ¡¢½âÊͺÍÖ´Ðм¸¸ö²¿·Ö¡£Java±àÒë³ÌÐò½«JavaÔ´³ÌÐò·ÒëΪJVM¿ÉÖ´ÐдúÂë—×Ö½ÚÂë¡£ÕâÒ»±àÒë¹ý ......
Ê×ÏÈjava½Ó¿ÚºÍ³éÏóÀà´ú±íµÄ¾ÍÊdzéÏóÀàÐÍ£¬¾ÍÊÇÎÒÃÇÐèÒªÌá³ö³éÏó²ãµÄ¾ßÌåʵÏÖ£¬Èç¹ûÒªÌá¸ß³ÌÐòµÄ¸´ÓÃÂÊ£¬¿Éά»¤ÐÔ£¬¿ÉÀ©Õ¹ÐÔ£¬¾Í±ØÐëÃæÏò½Ó¿ÚºÍ³éÏó±à³Ì£¬ÕýȷʹÓÃËûÃÇ¡£ £¨1£©³éÏóÀà¿ÉÒÔÌṩʵÏÖ·½·¨£¬½Ó¿Ú²»ÄÜ
ÕâÊdzéÏóÀàµÄΨһÓŵ㣬¶øÇҷdz£ÓÐÓã¬ÀýÈ磬Ä㶨ÒåÒ»¸ö½Ó¿Ú£¬×ÓÀ಻ÐèÒªËûµÄËùÓз½·¨£¬¿ÉÊÇÄãû°ì·¨²»È¥ ......
×ÜÊÇÍü¼Çjava¶ÁдÎļþµÄ´úÂë¾ßÌåÔõôд£¬Ð´ÁËÒ»¸ö¼Ç¼ÈçÏÂ
String filename="mydict.txt";
File file=new File(filename);
//read file
if(file.exists())
{
try
{
BufferedReader br=new BufferedReader(new FileReader(file));
String temp=null;
while((temp=br.readLine())!=null) ......
PO VO BO DTO POJO DAOÃǵĸÅÄî
J2EE¿ª·¢ÖдóÁ¿µÄרҵËõÂÔÓïºÜÊÇÈÃÈËÃÔ»ó£¬ÓÈÆäÊǸúһЩ¸ßÊÖÌÖÂÛÎÊÌâµÄʱºò£¬Èý·ÖÖӾͱ»È˼ÒÂú¿ÚµÄרҵÊõÓïÅçÔÎÁË£¬PO VO BO DTO POJO DAO£¬Ò»´ó¶ÑµÄ¾ÍÀ´ÁË£¨Ìý¹ýÀÏÂÞ¶ÔÕâÖÖÏÖÏóµÄÅúÅеÄÅóÓÑ»á»áÐÄһЦ£©¡£
Ê×ÏÈÉùÃ÷żҲ²»ÊÇʲô¸ßÊÖ£¬ÒÔÏÂ×ܽᶼÊÇ×Ô¼ºµÄÌå»á¡£²»¶ÔÖ®´ ......