length——数组的属性; length()——String的方法; size()——集合的方法; 转载于:https://www.cnblogs.com/loveMis/p/10320706.html