//方法一 StringBuffer aaBuffer =new StringBuffer("123");aaBuffer.replace(0, aaBuffer.length(), "456");System.out.println(aaBuffer.toString());//方法二 StringBuffer bbBuffer =new StringBuffer("123");bbBuffer.delete(0,aaBuffer.length());bbBuffer.append("456");System.out.pri...