News

In this blog we will learn how to iterate over the elements of a collection (here we considered arraylist) using generics and without generics.first we will go through the process of using iterator ...
To reset arraylist we have two options, one is to use clear() method and another is to use removeall(). we dont need to worry if size of the arraylist is small i.e. 10 to 100. but if arraylist size ...