delete方法与deleteCharAt两个方法都是用来删除StringBuffer字符串指定索引字符的方法, delete(int begin,int end)有两个参数,使用时删除索引从begin开始(包含begin)到end(不包含end)的所有字符; deleteCharAt(int index)只有一个参数,使用时删除索引为index的字符; 转载于:https://www.cnblogs.com/luxianyu-s/p/9719734.html