public char[] toCharArray(){
  char[] newValue=new char[count];
  System.arraycopy(buf,0,newValue,0,count);
  return newValue;
}

public char [ ] toCharArray ( ) { char [ ] newValue = new char [ count ] ; System . arraycopy ( buf , 0 , newValue , 0 , count ) ; return newValue ; }
returns a copy of the input data .
