Using the deleteCharAt() method to remove a character from a StringBuffer object at the index position
public class MainClass { public static void main(String[] arg) { StringBuffer phrase = new StringBuffer("one two three four"); phrase.deleteCharAt(10); System.out.println(phrase); } } one two thee four