Thing is, ArrayLists and Hashtables are for quite different uses. ArrayLists are just easy-to-use dynamic arrays, whereas Hashtables are keyed collections for mapping values onto unique keys...
I...
Type: Posts; User: dlorde
Thing is, ArrayLists and Hashtables are for quite different uses. ArrayLists are just easy-to-use dynamic arrays, whereas Hashtables are keyed collections for mapping values onto unique keys...
I...
It's all documented in the ArrayList API docs...
Not exactly. The constructor argument specifies the initial capacity - you can still add as many more items as will fit in memory. Use the initial capacity to improve efficiency when you know roughly...