What is ArrayList in Java?
java.util.AraayList is the collection class that is used to hold collection of Objects. Example: ArrayList all=new ArrayList(); The above line creates new ArrayList name as all. yoe can add objects to it by using the add method. Example: all.add(object); An ArrayList can have many number of elements.you can get the object specified .
Continue reading →