HashMap defaults to 16, but ArrayList defaults to 10. He probably got
those confused. I'm not sure how Sun came up with the default values.
-Sean
Mark Miller (JIRA) wrote:
A friend was recently telling me that ArrayList defaulted to 16, but it does
not -- it defaults to 10. He must have been confused and known that it *should*
default to 16. 16 is a much better default number than 10 due to the
exponential growth when doubling the array on resize. It may take a bit more
memory, but it gets a LOT more speed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]