6 public String(char str[]) {
7 char charstr[]=new char[str.length];
8 for(int i=0;i<str.length;i++)
11 this.count=str.length;
15 public String(byte str[]) {
16 char charstr[]=new char[str.length];
17 for(int i=0;i<str.length;i++)
18 charstr[i]=(char)str[i];
20 this.count=str.length;
24 public String(String str) {
27 this.offset=str.offset;
30 public String(StringBuffer strbuf) {
31 value=new char[strbuf.length()];
32 count=strbuf.length();
34 for(int i=0;i<count;i++)
35 value[i]=strbuf.value[i];
38 char[] toCharArray() {
39 char str[]=new char[count];
40 for(int i=0;i<count;i++)
41 str[i]=value[i+offset];
46 byte str[]=new byte[count];
47 for(int i=0;i<value.length;i++)
48 str[i]=(byte)value[i+offset];
56 public char charAt(int i) {
57 return value[i+offset];
60 public static String valueOf(Object o) {
64 public static String valueOf(int x) {
78 chararray=new char[length+1];
80 chararray=new char[length];
90 chararray[--length+voffset]=(char)(x%10+'0');
93 return new String(chararray);