java tutorial - Java StringBuffer insert() method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java stringbuffer insert - Java examples - Java programs
Description
The insert () method — in Java, inserts characters into this buffer string (StringBuffer). The substring is added before the specified index.
Syntax
The syntax of the method for each data type is:
Options
Detailed information about the parameters:
- the parameter depends on what you are trying to insert.
Return value
- In Java insert (), returns the modified StringBuffer object.