Comment on Tutorial - How to use ArrayList in Java By Hong
Comment Added by : Venus
Comment Added at : 2011-02-11 09:09:55
Comment on Tutorial : How to use ArrayList in Java By Hong
Thanks, I understand the add function better now (found out it will expand the size as it needs).
However, I noticed that you didn't set the capacity of ArrayList al during the initiation. According to the API, the default size of an ArrayList is 10. But on your output, it says 0, are you sure nothing is missing on the code?
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
8. Nice example. I think this is more idiomatic tho'.
View Tutorial By: John Morrison at 2010-03-28 14:55:07
9. Dear All, I am getting the following exception for
View Tutorial By: Protik Basu at 2008-10-31 05:30:36