public void setCharAt(int index, char ch) {if (index < 0 || index >= count) {throw indexAndLength(index);}if (shared) {value = value.clone();shared = false;}value[index] = ch;}

public virtual void setCharAt(int index, char ch){if (index < 0 || index >= count){throw indexAndLength(index);}if (shared){value = (char[])value.Clone();shared = false;}value[index] = ch;}
