public char[] toCharArray(){
  char[] buffer=new char[count];
  System.arraycopy(value,offset,buffer,0,count);
  return buffer;
}

public char [ ] toCharArray ( ) { char [ ] buffer = new char [ count ] ; System . arraycopy ( value , offset , buffer , 0 , count ) ; return buffer ; }
converts this string to a new character array .
