Possible Duplicate:
count vs length vs size in a collection
In Java in particular, on Strings
, you call string.length()
, whereas in Lists
you call list.size()
. Is there a technical difference between the two terms, seeing as a String
is really just a list of chars
?
Any comments appreciated.