javaÕýÔò±í´ïʽȥµôÆ¥Åä¿Õ¸ñ¿ÕÐÐ
java µÄÈ¥µô¿Õ¸ñ¿ÕÐеÄÀý×Ó£º
String so = "haolong, hei eip, "
+"ting, " +
" oo|,"
+" ";
System.out.println(so.length());
// so.replaceAll("(\n|\r\n)\\s*", ""); ²âÊÔÊDz»¿ÉÒÔ
//[\s\p{Zs}]Õâ¸ö¿ÉÒÔ£¬ÒªÍ¬Ê±Æ¥Åä \s ÒÔ¼°¸÷ÖÖÆäËûµÄ¿Õ°××Ö·û£¨°üÀ¨È«½Ç¿Õ¸ñµÈ£©£¬¿ÉÒÔʹÓÃ
Pattern pattern = Pattern.compile("[\\s\\p{Zs}]");
Matcher re = pattern.matcher(so);
so=re.replaceAll("");
// so.replace("(\\r\\n)+|\\n+|\\s+","");²âÊÔÊDz»¿ÉÒÔ
// so.replaceAll("(\n|\r\n)\\s*", "");²âÊÔÊDz»¿ÉÒÔ
// so.replaceAll("(\n|\r\n)\\s+", "$1");²âÊÔÊDz»¿ÉÒÔ
System.out.println(so.length());
System.out.println(so);
"\s"Æ¥ÅäµÄÊÇÄÄÒ»ÖÖ¿Õ¸ñ?
\sÆ¥ÅäÈÎÒâµÄ¿Õ°×·û£¬°üÀ¨¿Õ¸ñ£¬ÖƱí·û(Tab)£¬»»Ðзû£¬ÖÐÎÄÈ«½Ç¿Õ¸ñ
\s ¿Õ°××Ö·û£º[ \t\n\x0B\f\r] //Õâ¸öÊÇÖص㣡
\t ÖƱí·û ('\u0009')
\n ÐÂÐУ¨»»ÐУ©·û ('\u000A')
\r »Ø³µ·û ('\u000D')
\f »»Ò³·û ('\u000C')
\a ±¨¾¯ (bell) ·û ('\u0007')
\e תÒå·û ('\u001B')
\cx ¶ÔÓ¦ÓÚ x µÄ¿ØÖÆ·û
\s ²¢²»ÄÜÆ¥ÅäÖÐÎÄÈ«½Ç¿Õ¸ñ¡£
\s
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.regex ......
Ò»¡¢PO:
persistant object
³Ö¾Ã¶ÔÏó,¿ÉÒÔ¿´³ÉÊÇÓëÊý¾Ý¿âÖеıíÏàÓ³ÉäµÄjava¶ÔÏó¡£×î¼òµ¥µÄPO¾ÍÊǶÔÓ¦Êý¾Ý¿âÖÐij¸ö±íÖеÄÒ»Ìõ¼Ç¼£¬¶à¸ö¼Ç¼¿ÉÒÔÓÃPOµÄ¼¯ºÏ¡£POÖÐÓ¦¸Ã²»°ü
º¬ÈκζÔÊý¾Ý¿âµÄ²Ù×÷¡£
¶þ¡¢VO
:value
objectÖµ¶ÔÏó¡£Í¨³£ÓÃÓÚÒµÎñ²ãÖ®¼äµÄÊý¾Ý´«µÝ£¬ºÍPOÒ»ÑùÒ²Êǽö½ö°üº¬Êý¾ ......