java中String的一些办法   
               添加时间:2013-7-16 点击量: 
 
              1、public String(char[] c,begin,length).
  从字符数组c的下标begin处开端,将长度为length的字符数组转换为字符串。
  begin与length可以省略,即将字符数组c转换为字符串。
  
  char[] c=new char[]{j,y,6,a,4,t,9};
 
  String s1=new String(c);
 
  String s=new String(c,2,3);
 
  System.out.println(s1);
  
  System.out.println(s);
容易发怒的意思就是: 别人做了蠢事, 然后我们代替他们, 表现出笨蛋的样子。—— 蔡康永
                     
                  
     
  
 
    
    
1、public String(char[] c,begin,length).容易发怒的意思就是: 别人做了蠢事, 然后我们代替他们, 表现出笨蛋的样子。—— 蔡康永
从字符数组c的下标begin处开端,将长度为length的字符数组转换为字符串。
begin与length可以省略,即将字符数组c转换为字符串。
char[] c=new char[]{j,y,6,a,4,t,9};
String s1=new String(c);
String s=new String(c,2,3);
System.out.println(s1);
System.out.println(s);




