Java核心代码例程之:StringBufferDemo.java
2008-01-05 08:38:04 来源:WEB开发网核心提示:/** * Demo use of a StringBuffer ***/public class StringBufferDemo{public static void main(String args[]) throws Exception{StringBuffer sb = new StringBuffer();
/**
* Demo use of a StringBuffer
***/
public class StringBufferDemo
{
public static void main(String args[]) throws Exception
{
StringBuffer sb = new StringBuffer();
sb.append("Hello, World!
");
sb.append(123);
sb.append(", ");
sb.append(2.5);
System.out.PRintln(sb.toString());
}
}
赞助商链接