H
Harald Kirsch
Vector has size().
Collection has size().
List has size().
StringBuffer has length().
String has length().
Arrays have length (the non-parentheses are not at issue here).
I am not sure if I see a consistent theme here. Is there
a theme? If I write a class to contain indexable elements,
along which guideline can I choose between length()
and size()?
Harald.
Collection has size().
List has size().
StringBuffer has length().
String has length().
Arrays have length (the non-parentheses are not at issue here).
I am not sure if I see a consistent theme here. Is there
a theme? If I write a class to contain indexable elements,
along which guideline can I choose between length()
and size()?
Harald.