Skip to content

Commit f9f4120

Browse files
committed
Update blogpost
1 parent 3b64db1 commit f9f4120

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

_posts/collections/arraylist/2021-11-24-arraylist-in-java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ By default, Collections are heterogeneous i.e. they can save all types of object
104104
|[`removeRange(int fromIndex, int toIndex)`](http://coderolls.com/arraylist-removerange-method/)|This method is used for removing the range of ekements from the subclasses of the ArrayList class. The [`removeRange(int fromIndex, int toIndex)` method](http://coderolls.com/arraylist-removerange-method/) is a protected method.|
105105
|[`retainAll(Collection c)`](http://coderolls.com/arraylist-retainall-method/)|This method method retains all the elements of the collection passed as a parameter in the list.|
106106
|[`trimToSize()`](http://coderolls.com/arraylist-trimtosize-method/)|This method trims the capacity of this ArrayList instance to be the list's current size.|
107+
|[`indexOf(Object o)`](http://coderolls.com/arraylist-indexof-method/)|This method returns the index of the first occurrences of the object specified. It returns -1 if the specified object `o` is not present in the list.|
107108

108109

109110

0 commit comments

Comments
 (0)