java技术博客

jsp博客
数据加载中……
CapacityTest.java
public class CapacityTest{
public static void main(String[] args){
String buffer sb=new StringBuffer(10);
sb.append("this is a a");
System.out.println(sb.capacity());
System.out.println(sb.length());
}
}

posted on 2008-10-22 07:57 郭兴华 阅读(83) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: