Programming Tutorials

Comment on Tutorial - How to use ArrayList in Java By Hong



Comment Added by : Hong

Comment Added at : 2009-05-04 20:40:28

Comment on Tutorial : How to use ArrayList in Java By Hong
Hi Jon,

It really depends on the application. Roughly if you can gauge how many you would need, then it is best to assign initial capacity higher. However if you are using an old machine with less RAM, then you could consider the other option. But trust me there is no correct answer to this question.


View Tutorial