how use the indexOf() method in ArrayList class