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

javaÈ¥³ý×Ö·û´®ÖеĿոñ¡¢»Ø³µ¡¢»»Ðзû¡¢ÖƱí·û

javaÈ¥³ý×Ö·û´®ÖеĿոñ¡¢»Ø³µ¡¢»»Ðзû¡¢ÖƱí·û
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringUtil {
public static void replaceBlank()
{
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
String str="I am a, I am Hello ok, \n new line ffdsa!";
System.out.println("before:"+str);
Matcher m = p.matcher(str);
String after = m.replaceAll("");
System.out.println("after:"+after);
}
public static void main(String[] args) {
replaceBlank();
}
}


Ïà¹ØÎĵµ£º

Java¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨

 Ê¹ÓÃJ2SE API¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨
1¡£Ê¹ÓÃjava.util.PropertiesÀàµÄload()·½·¨
ʾÀý£º InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);
2¡£Ê¹ÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨
ʾÀý£º ResourceBundle rb = Resou ......

´«ÖDz¥¿Íjavaѧϰ hibernateÓ³Éä


ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½«µÄhibernate¿ò¼Ü֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
       ¼¯ºÏÊôÐÔ´óÖ·ÖΪ¶þÖÖ£º
µ¥´¿µÄ¼¯ºÏÊôÐÔ£¬ÏñList,Set»òÊý×éµÈ¼¯ºÏÊôÐÔ¡£
              2,Map¼¯ºÏÊôÐÔ£¬Ã¿¸öÊôÐÔÖµ¶àÓÐÏà¶ÔÓ¦µÄKeyÓ³Éä¡£
&nb ......

´«ÖDz¥¿Íjavaѧϰ lucene½ø½×


ÎÒ½ñÌìѧϰÁËluceneµÄһЩ֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Ë÷ÒýÎļþ½á¹¹£º
   µ¹ÅÅË÷Òý£¬Ë÷Òý¶ÔÏóÊÇÎĵµÖеĵ¥´ÊµÈ£¬ÓÃÀ´´æ´¢ÕâЩµ¥´ÊÔÚÒ»¸öÎĵµÖеÄλÖá£ÀýÈ磬ÓÐЩÊéÔÚ×îºóÌṩµÄË÷Òý£¨µ¥´Ê——Ò³ÂëµÄ¶ÔÓ¦ÁÐ±í£©£¬¾Í¿ÉÒÔ¿´³ÉÊÇÒ»ÖÖµ¹ÅÅÐòË÷Òý¡£¿ÉÒÔͨ¹ýһЩ¹Ø¼ü×Ö£¬ÔÚÈ«ÊéÖмìË÷³öÓëÖ®Ïà¹ØµÄ²¿
Ë÷ÒýÎ ......

´«ÖDz¥¿Íjavaѧϰ ¹¤×÷Á÷³õ²½


ÎÒ½ñÌìԤϰÁ˹¤×÷Á÷µÄ֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
¹¤×÷Á÷£¨Workflow£©
¹¤×÷Á÷¾ÍÊǹ¤×÷Á÷³ÌµÄ¼ÆËã»ú»¯£¬¼´½«¹¤×÷Á÷³ÌÖеŤ×÷ÈçºÎǰºó×éÖ¯ÔÚÒ»ÆðµÄ
Âß¼­ºÍ¹æÔòÔÚ¼ÆËã»úÖÐÒÔÇ¡µ±µÄÄ£ÐͽøÐбíʾ²¢¶ÔÆäʵʩ¼ÆËã¡£
¹¤×÷Á÷Òª½â¾öµÄÖ÷ÒªÎÊÌâÊÇ£ºÎªÊµÏÖij¸öÒµÎñÄ¿±ê£¬ÔÚ¶à¸ö²ÎÓëÕßÖ®¼ä£¬ÀûÓüÆ
Ëã»ú£¬°´Ä³ÖÖÔ¤¶¨¹æÔò×Ô¶¯´«µÝÎÄ ......

java ѧϰÐĵÃÌå»á(¶þ)


66.  EJBÈÝÆ÷ÌṩµÄ·þÎñ
        Ö÷ÒªÌṩÉùÃ÷ÖÜÆÚ¹ÜÀí¡¢´úÂë²úÉú¡¢³ÖÐøÐÔ¹ÜÀí¡¢°²È«¡¢ÊÂÎñ¹ÜÀí¡¢ËøºÍ²¢·¢ÐйÜÀíµÈ·þÎñ¡£
67.  EJB¹æ·¶¹æ¶¨EJBÖнûÖ¹µÄ²Ù×÷ÓÐÄÄЩ£¿
        1.²»ÄܲÙ×÷Ï̺߳ÍÏß³ÌAPI(Ïß³ÌAPIÖ¸·ÇÏ̶߳ÔÏóµÄ·½·¨Èçn ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ