RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Spring>列表

Jdk1.4 和jdk1.5中的StringBuffer的不同

来源: 作者: 时间:2007-08-09 点击:
// Note: offset or count might be near -1>>>1.

        if (offset > value. length - count) {

            throw new StringIndexOutOfBoundsException(offset + count);

        }

        char [] v = new char [count];

        System.arraycopy(value, offset, v, 0, count);

        this . offset = 0;

        this . count = count;

        this . value = v;

}

重新分配了内存空间

 

再来看看

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章