标签:
public static void testAppend() { StringBuffer sb = new StringBuffer("This is a StringBuffer!"); sb.append(1.23f); System.out.println(sb.toString()); }
输出的是This is a StringBuffer!1.23f
StringBuffer buf=new StringBuffer("Hard "); String aString = "Waxworks"; buf.append(aString,3,4);
标签:
原文地址:http://www.cnblogs.com/ouysq/p/4499662.html