An ArrayList has methods for inserting, deleting, and searching.
Tutorial Details:
java.util.ArrayList allows for expandable arrays, and is the Collections replacement for the older Vector class. An ArrayList has the following advantages over an array:
An ArrayList automatically expands as data is added.
An ArrayList implements the List interface which allows the underlying implementation to be changed without changing code. (needs example).
An ArrayList has methods for inserting, deleting, and searching.
An ArrayList allows use of iterators.
Use ArrayList when there will be a large variation in the amount of data that you would put into an array.
Rate Tutorial: http://www.roseindia.net/java/java-tips/data/collections_non_generic/20lists/10list.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: ArrayList
View Tutorial: ArrayList
Related
Tutorials:
|