public class StringBufferExample { public static void main(String [] args) { String hello = "Love Java"; StringBuffer helloBuffer = new StringBuffer(hello); System.out.println("append: "+ helloBuffer.append(" Beans!")); System.out.println("delete: "+ helloBuffer.delete(5, helloBuffer.length()) ); System.out.println("insert: "+ helloBuffer.insert(5, "coffee Beans ")); System.out.println("reverse:"+ helloBuffer.reverse() ); } }