Answers for "how to clear a stringbuffer in java"

0

how to clear a stringbuffer in java

StringBuffer str = new StringBuffer();

str.append("One");
str.append("Two");
str.append("Three");

//<StringBuffer>.delete(<int start>, <int end>);
str.delete(0, str.length());
Posted by: Guest on December-13-2020

Code answers related to "how to clear a stringbuffer in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language