Java List – IndexOf Method in ArrayList

The indexOf() is a method of list interface, which we can use to find the index position of an element