public String(StringBuffer stringbuffer){
  offset=0;
synchronized (stringbuffer) {
    value=stringbuffer.shareValue();
    count=stringbuffer.length();
  }
}

public String ( StringBuffer stringbuffer ) { offset = 0 ; synchronized ( stringbuffer ) { value = stringbuffer . shareValue ( ) ; count = stringbuffer . length ( ) ; } }
creates a string from the contents of a stringbuffer .
