public AbstractStringBuilder insert (int offset, boolean b)

Inserts the string representation of the boolean argument into this sequence.

The overall effect is exactly as if the second argument were converted to a string by the method String.valueOf(boolean), and the characters of that string were then inserted into this character sequence at the indicated offset.

The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.

Parameters:
offset    the offset.
b    a boolean.

Returns:  a reference to this object.

Exceptions:
StringIndexOutOfBoundsException    if the offset is invalid.