package corejava;

public class AppendStringDemo {
	public static void main(String args[]) {
		String s;
		int x = 12;
		StringBuffer strb = new StringBuffer(40);
		s = strb.append("x=").append(x).append("!").toString();
		System.out.println(s);
	}

}
