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

java ÕýÔò±í´ïʽ¹¤¾ßÀà

//ʹÓÃabstractÄ¿µÄÊÇΪÁËÈÃʹÓÃÕßÖ»Äܵ÷ÓÃgetInstance»ñȡʵÀý
public abstract class RegexUtil {
public static void main(String[] args) {
RegexUtil ru = RegexUtil.getInstance();
String regexp = "(\\d+.\\d+.\\d+.\\d+):(\\d+)";
String data = "ldap://192.168.16.152:389/";
System.out.println(">>>" + ru.matchGroup(regexp, data).size());
}
public List<String> matchGroup(String regexp, String data) {
Pattern p = Pattern.compile(regexp);
Matcher matcher = p.matcher(data);
List<String> list = null;
while (matcher.find()) {
int length = matcher.groupCount();
list = new java.util.ArrayList<String>(length);
for (int i = 1; i < length + 1; i++) {
list.add(matcher.group(i));
}
}
return list;
}
private static RegexUtil ru = null;
//µ¥Ì«Ä£Ê½
public static RegexUtil getInstance() {
if (ru == null) {
ru = new RegexUtil() {
};
}
return ru;
}
}


Ïà¹ØÎĵµ£º

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

Java½â»ó3 33Ñ­»·ÕßÓöµ½ÁËÀÇÈË

ÇëÌṩһ¸ö¶ÔiµÄÉùÃ÷£¬½«ÏÂÃæµÄÑ­»·×ª±äΪһ¸öÎÞÏÞÑ­»·¡£Õâ¸öÑ­»·²»ÐèҪʹÓÃÈκÎ5.0°æµÄÌØÐÔ£º
while (i != 0 && i == -i) {
}
ÕâÈÔÈ»ÊÇÒ»¸öÑ­»·¡£ÔÚ²¼¶û±í´ïʽ(i != 0 && i == -i)ÖУ¬Ò»Ôª¼õºÅ²Ù×÷·û×÷ÓÃÓÚi£¬ÕâÒâζ×ÅËüµÄÀàÐͱØÐëÊÇÊý×ÖÐ͵ģºÒ»Ôª¼õºÅ²Ù×÷·û×÷ÓÃÓÚÒ»¸ö·ÇÊý×ÖÐͲÙ×÷ÊýÊÇ·Ç·¨µÄ¡£Òò´Ë£ ......

Java½â»ó4 38²»ÊÜ»¶Ó­µÄ±ö¿Í

±¾ÃÕÌâÖеijÌÐòËù½¨Ä£µÄϵͳ£¬½«³¢ÊÔ×Å´ÓÆä»·¾³ÖжÁȡһ¸öÓû§ID£¬Èç¹ûÕâÖÖ³¢ÊÔʧ°ÜÁË£¬ÔòȱʡµØÈÏΪËüÊÇÒ»¸öÀ´±öÓû§¡£¸Ã³ÌÐòµÄ×÷Õß½«Ãæ¶ÔÓÐÒ»¸ö¾²Ì¬ÓòµÄ³õʼ»¯±í´ïʽ¿ÉÄÜ»áÅ׳öÒì³£µÄÇé¿ö¡£ÒòΪJava²»ÔÊÐí¾²Ì¬³õʼ»¯²Ù×÷Å׳ö±»¼ì²éÒì³££¬ËùÒÔ³õʼ»¯±ØÐë°ü×°ÔÚtry-finallyÓï¾ä¿éÖС£ÄÇô£¬ÏÂÃæµÄ³ÌÐò»á´òÓ¡³öÊ²Ã´ÄØ£¿
pu ......

Java NIO »º³å+¶ÏµãÏÂÔØ

ÓÃJAVAʵÏÖ»º³å¶àÏß³ÌÎÞ×èÈû¶ÁȡԶ³ÌÎļþ
http://ajava.org/course/java/10688.html
ʹÓÃFileChannelºÍByteBuffer
http://www.java2s.com/CN/Code/Java/File-Input-Output/useFileChannelandByteBuffer.htm
java.nio.Buffer»º³åÇø»ù´¡
http://zcdxzsz.javaeye.com/blog/310917
Java NIO Ó¦Óà -- ʹÓÃÄÚ´æÓ³ÉäÎļþʵÏÖ ......

java֪ʶµã»ã×ÜÖ®Ò»¶ÑºÍ¶ÑÕ»(2)

Java °ÑÄÚ´æ»®·Ö³ÉÁ½ÖÖ£ºÒ»ÖÖÊÇÕ»Äڴ棬ÁíÒ»ÖÖÊǶÑÄÚ´æ¡£ÔÚº¯ÊýÖж¨ÒåµÄһЩ»ù±¾ÀàÐ͵ıäÁ¿ºÍ¶ÔÏóµÄÒýÓñäÁ¿¶¼ÊÇÔÚº¯ÊýµÄÕ»ÄÚ´æÖзÖÅ䣬µ±ÔÚÒ»¶Î´úÂë¿é¶¨ÒåÒ»¸ö±äÁ¿Ê±£¬Java ¾ÍÔÚÕ»ÖÐΪÕâ¸ö±äÁ¿·ÖÅäÄÚ´æ¿Õ¼ä£¬µ±³¬¹ý±äÁ¿µÄ×÷ÓÃÓòºó£¬Java »á×Ô¶¯ÊͷŵôΪ¸Ã±äÁ¿·ÖÅäµÄÄÚ´æ¿Õ¼ä£¬¸ÃÄÚ´æ¿Õ¼ä¿ÉÒÔÁ¢¼´±»Áí×÷ËüÓá£
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ