This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes example insert method in StringBuffer      Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "example insert method in StringBuffer      " Watch "example insert method in StringBuffer      " New topic
Author

example insert method in StringBuffer

Divyya Joshi
Ranch Hand

Joined: Jul 15, 2010
Posts: 102
Can anyone give me example of StringBuffer's method

ublic StringBuffer insert(int index,
char[] str,
int offset,
int len);

thanks in advance

John Stark
Ranch Hand

Joined: Jul 19, 2011
Posts: 185


Output is: OneTwoThreeFour.

John
Divyya Joshi
Ranch Hand

Joined: Jul 15, 2010
Posts: 102
Thanks John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: example insert method in StringBuffer
 
Similar Threads
StringBuffer??
confuse about StringBuffer insert method
StringBuffer help
StringBuffer
Problem with strings