1. ArrayList类注释翻译
Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null. In addition to implementing the List interface, this class provides methods to manipulate the size of the array that is used internally to store the list. (This class is roughly equivalent to Vector, except that it is unsynchronized.) ArrayList是List接口的可变数组实现。ArrayList实现了所有可选的list操作,并且允许所有元素,包括null。ArrayList除了实现List接口以外,这个类还提供了操控数组(数组在内部被用来存储list)大小的方法。(ArrayList大体上等同于Vector,除了ArrayList是非线程安全的。)
The size, isEmpty, get, set, iterator, and listIterator operations run in constant time. The add operation runs in amortized constant time, that is, adding n elements requires O(n) time. All of the other operations run in linear time (roughly speaking). The constant factor is low compared to that for the LinkedList implementation. 执行size、isEmpty、get、set、iterator以及list