Java tutorial
public class MainClass { public static void main(String[] arg) { StringBuffer newString = new StringBuffer("abcde"); System.out.println(newString.capacity()); } }