A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: May 08, 2006
May 30, 2012 01:24:31
Vector class in
has capacity method. My question is why it is not in any generic class like
so that any collection class can call that method to check current capacity?
Joined: Aug 22, 2010
May 30, 2012 01:29:22
Not all collection implementations have a capacity. A
, for example, hasn't.
I agree. Here's the link:
subject: capacity method
capacity of a stringbuffer
Local Inner Class: Quick Question.
BigDecimal nextProbablePrime(). HashMap initial capacity
ArrayList vs Vector Size and Capacity difference ?
the capacity() method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013