Just pass on the Stringbuffer object into String and create a new object. String s = new String(stringBuffer); vice versa use toString(); D.J
Joined: Jan 07, 1999
"Dean J", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements. Thanks.