Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to covert a String to a StringBuffer?

Status
Not open for further replies.

LucyL

Technical User
Feb 20, 2002
113
US
Hi
How do you covert a String to a StringBuffer?
 
One way is

StringBuffer strBuff = new StringBuffer();
strBuff.add(youStringObject);
 
Opps, sorry there is no add method for the StringBuffer
Use append instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top