StringBuffer class in Java
// creates an empty string buffer with the initial capacity of 16. StringBuffer str = new StringBuffer(); // creates a string buffer with the specified string. StringBuffer str = new StringBuffer(“some string value”); // creates an empty string buffer with the specified capacity as length. StringBuffer str = new StringBuffer(10); class Test { public static…
Read More StringBuffer class in Java