JavaÖÐStringµÄÓ÷¨×ܽá
¹¹Ôì·½·¨£º
String()
³õʼ»¯Ò»¸öд´½¨µÄ String ¶ÔÏó£¬Ëü±íʾһ¸ö¿Õ×Ö·ûÐòÁС£
String(byte[] bytes)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃƽ̨µÄĬÈÏ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨Êý×é¡£
String(byte[] bytes, int offset, int length)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨×ÓÊý×é¡£
String(byte[] bytes, int offset, int length, String charsetName)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨×ÓÊý×é¡£
String(byte[] bytes, String charsetName)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂëÖ¸¶¨µÄ×Ö½ÚÊý×é¡£
String(char[] value)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü±íʾµ±Ç°×Ö·ûÊý×é²ÎÊýÖаüº¬µÄ×Ö·ûÐòÁС£
String(char[] value, int offset, int count)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü°üº¬À´×Ô¸Ã×Ö·ûÊý×é²ÎÊýµÄÒ»¸ö×ÓÊý×éµÄ×Ö·û¡£
String(int[] codePoints, int offset, int count)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü°üº¬¸Ã Unicode ´úÂëµãÊý×é²ÎÊýµÄÒ»¸ö×ÓÊý×éµÄ×Ö·û¡£
String(String original)
³õʼ»¯Ò»¸öд´½¨µÄ String ¶ÔÏ󣬱íʾһ¸öÓë¸Ã²ÎÊýÏàͬµÄ×Ö·ûÐòÁУ»»»¾ä»°Ëµ£¬Ð´´½¨µÄ×Ö·û´®ÊǸòÎÊý×Ö·û´®µÄÒ»¸ö¸±±¾¡£
String(StringBuffer buffer)
·ÖÅäÒ»¸öеÄ×Ö·û´®£¬Ëü°üº¬µ±Ç°°üº¬ÔÚ×Ö·û´®»º³åÇø²ÎÊýÖеÄ×Ö·ûÐòÁС£
String(StringBuilder builder)
·ÖÅäÒ»¸öеÄ×Ö·û´®£¬Ëü°üº¬µ±Ç°°üº¬ÔÚ×Ö·û´®Éú³ÉÆ÷²ÎÊýÖеÄ×Ö·ûÐòÁÐ
·½·¨×ܽ᣺
char charAt(int index)
·µ»ØÖ¸¶¨Ë÷Òý´¦µÄ char Öµ¡£
int codePointAt(int index)
&nbs
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
¡¡¡¡¡¡Spring Framework ¡¾Java¿ªÔ´ J2EE¿ò¼Ü¡¿
¡¡¡¡Spring ÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃÏ°¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐ﵀ Inversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°ÖеÄÒ»²¿·Ö£ºSpringÔ ......
java¼¯ºÏ¿ò¼Üͼ¼°½éÉÜ
ת×Ô:http://hi.baidu.com/%C9%AE_%CC%C6/blog/item/9e2a8b0887008a8ad0581b3d.html
¼ò»¯Í¼£º
Javaƽ̨ÌṩÁËÒ»¸öȫеļ¯ºÏ¿ò¼Ü¡£“¼¯ºÏ¿ò¼Ü”Ö÷ÒªÓÉÒ»×éÓÃÀ´²Ù×÷¶ÔÏóµÄ½Ó¿Ú×é³É¡£²»Í¬½Ó¿ÚÃèÊöÒ»×鲻ͬÊý¾ÝÀàÐÍ¡£
Java 2¼¯ºÏ¿ò¼Üͼ
¼¯ºÏ½Ó¿Ú£º6¸ö½Ó¿Ú£¨¶ÌÐéÏß±íʾ£©£¬±íʾ²»Í ......
ÔÚ±àÒëandroid code ³öÏÖ°æ±¾²»¶ÔµÄÎÊÌ⣺
ÃèÊöÈçÏ£º
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_17".
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
ÍøÉÏÓÐÈËÌṩ½â¾ö·½·¨ÈçÏ ......