Mega Code Archive
Delete from start till end
public class Main {
public static void main(String[] argv) throws Exception {
StringBuffer buf = new StringBuffer("Java this is a test");
int start = 4;
int end = 5;
buf.delete(start, end);
System.out.println(buf);
}
}