Here is how to create a collection object which extends ArrayList
The below Java example shows how to create a collection object which extends ArrayList. The below program does two things 1) Adds in a few string objects and one in between 2) Finds the index of a particular string object in the collection object. The outcome is as follows:-