表示长度的时候能用。
n. 长度,长时间的长短(语)音长
His length just meets the minimum requirement to participate in the competition.
他的身高刚好达到了参加比赛的最低要求。It is about a metre in length.
它大约有一米长。
The river is 300 miles in length.
这条河长300英里。
The sleeves are unequal in length.
这两只衣袖不一般长。
Did you see the length of his hair?
你看见他头发有多长吗
This room is twice the length of the kitchen.
这个房间的长度是厨房的两倍。
length什么时候都能用吗
String类有length的方法,数组有length的属性,集合(List)有size的方法。 length是长度,一维的,size大小,至少是二维的,也可能是三维的。