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

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Õ»Óë¶ÑµÄ˼¿¼

¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼
1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µ ......

ÈçºÎÈ¡µÄJavaÔ´´úÂëÎļþÖÐÎļþÃûºÍÐкÅ

ÈçºÎÈ¡µÄJavaÔ´´úÂëÎļþÖÐÎļþÃûºÍÐкţº£©
ÔÚC/C++µÄ³ÌÐò£¬±àÒëÆ÷ÌṩÁËÁ½¸öºêÀ´Ö§³ÖÈ¡µÃÔ´ÎļþÖеÄÐкźÍÎļþÃû£¬ÕâÁ½¸öºêÊÇ__FILE__,__LINE__
Äã¿ÉÒÔÈçϵķ½·¨´òÓ¡ÐкźÍÎļþÃû
²é¿´Ô´´úÂë
´òÓ¡°ïÖú
1    #include <stdio.h>
2    int main()
3    {
4&nbs ......

Çë¸÷λ¸ßÊÖ²»Áߴͽ̣¬JAVA³ÌÐòÎÊÌâ

 ×ܹ²Á½¸öÎļþTaxTest.javaÓëTax.java
---------------------------------------------------------------------------------------
TaxTest.java
===========================================
import javax.swing.JOptionPane;
public class TestTax{
public static void main(String[] args){
String yea ......

android ±àÒëÎÊÌâ java ºÍ javac °æ±¾²»¶Ô

ÔÚ±àÒë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
ÍøÉÏÓÐÈËÌṩ½â¾ö·½·¨ÈçÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ