charat
美
英 
例句
Although the charAt implementation directly returns char primitives, the iterator implementation must box each char into a Character object.
而charAt实现直接返回char原语,迭代器实现必须将每个char装箱为一个Character对象。
Finally, it is remarkable that the performance of Rope. charAt is better than the performance of String. charAt.
最后,非常明显的是:Rope.charAt的性能比String.charAt的性能好。
A CharSequence provides only a single method for accessing its characters: charAt(x).
CharSequence只提供了一个方法来访问它的字符:charAt(x)。
For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
对于charAt这样的方法,索引值等于字符串的长度时也会抛出该异常。
Astute readers might wonder why charAt is more than seven times faster than the iterator, given that both provide O(1) access time.
聪明的读者可能想知道既然大家都提供0(1)的访问时间,为什么charAt会比迭代器快7倍。
However, by using charAt for each character, the first code block in Listing 3 pays the O(log n) lookup time n times.
但是,由于每个字符上都使用charAt,清单3中第一个代码块花了n倍的O(logn)查询时间。