delete stringbuffer java code example
Example 1: 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());
Example 2: remove character stringbuffer
public StringBuffer delete(int start, int end)