clear a stringbuffer code example
Example: 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());