/* * Output: * 5 * */ public class MainClass { public static void main(String args[]) { StringBuffer sb = new StringBuffer(40); sb.append(5); String s = sb.toString(); System.out.println(s); } }