描述
The java.lang.StringBuffer.insert(int offset, char[] str) method inserts the string representation of the char array argument into this sequence.
The characters of the array argument are inserted into the contents of this sequence at the position indicated by offset. The length of this sequence increases by the length of the argument.
声明
Following is the declaration for java.lang.StringBuffer.insert() method
public StringBuffer insert(int offset, char[] str)
参数
offset -- This is the offset.
str -- This is the character array.
返回值
This method returns a reference to this object.
异常
StringIndexOutOfBoundsException -- if the offset is invalid.