Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 clone¼¼Êõ

¡¡ÕâÊÇclone¼¼Êõ½éÉܵĵÚһƪ¡£±¾ÆªÖ÷Òª½éÉܶÔÏóclone¼¼ÊõµÄ»ù±¾ÖªÊ¶¡£
Clone»ù±¾ÖªÊ¶´¢±¸
ÔÚJavaÀïÌáµ½clone¼¼Êõ£¬¾Í²»Äܲ»Ìájava.lang.Cloneable½Ó¿ÚºÍº¬ÓÐclone·½·¨µÄObjectÀà¡£ËùÓоßÓÐclone¹¦ÄܵÄÀ඼ÓÐÒ»¸öÌØÐÔ£¬ÄǾÍÊÇËüÖ±½Ó»ò¼ä½ÓµØʵÏÖÁËCloneable½Ó¿Ú¡£·ñÔò£¬ÎÒÃÇÔÚ³¢ÊÔµ÷ÓÃclone£¨£©·½·¨Ê±£¬½«»á´¥·¢CloneNo ......

´«ÖDz¥¿Íjavaѧϰ lucene³õ²½

ÒòΪ¼´½«ÒªÑ§Ï°lucene£¬ËùÒÔÎÒÌáǰԤϰÁËluceneµÄÏà¹Ø֪ʶ£¬
1£¬luceneÊÇÖÚ¶àËÑË÷ÒýÇæÖеÄÒ»¸ö£¬¾ÍÏñ³Ö¾Ã²ã³ýÁËHibernateÍâÒ²ÓкܶàÆäËü¿ò¼Ü
Ò»Ñù¡£LuceneÊÇÒ»¸ö¿ª·¢¹¤¾ß°ü£¬ÎÒÃÇ¿ÉÒÔʹÓÃËûΪӦÓóÌÐòÌí¼ÓÈ«ÎļìË÷µÄ¹¦ÄÜ¡£
2£¬Ä¿Ç°ÒѾ­ÓкܶàÓ¦ÓóÌÐòµÄËÑË÷¹¦ÄÜÊÇ»ùÓÚ Lucene µÄ£¬±ÈÈç Eclipse µÄ°ïÖúϵ
ͳµÄËÑË÷¹¦ÄÜ¡£ ......

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


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

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


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