Inserts a String to a StringBuffer at the specified position
Inserts a String to a StringBuffer at the specified position
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
buff.insert(6, "Hey");
System.out.println(buff);
}
}
Tags: java.lang, java.lang.StringBuffer, StringBuffer, StringBuffer class examples, StringBuffer examples
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply