表示長度的時候能用。
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.
這個房間的長度是廚房的兩倍。
String類有length的方法,數組有length的屬性,集合(List)有size的方法。 length是長度,一維的,size大小,至少是二維的,也可能是三維的。