日期:2014-05-20  浏览次数:20846 次

java中string类的charAt函数效率是?
如题,求解。。

------解决方案--------------------
Java code

    public char charAt(int index) {
        if ((index < 0) || (index >= count)) {
            throw new StringIndexOutOfBoundsException(index);
        }
        return value[index + offset];
    }