A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
the capacity() method
BigDecimal nextProbablePrime(). HashMap initial capacity
ArrayList vs Vector Size and Capacity difference ?
Local Inner Class: Quick Question.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014