本帖最后由 pvbj0314 于 2015-5-13 20:27 编辑
”size
int size()
Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
Specified by:
size in interface Collection<E>
Returns:
the number of elements in this list“ —— https://docs.oracle.com/javase/8/docs/api/ 找接口List<E>,左下方窗口中的List
请参阅红色字体的部分 |