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