描述
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.