Here you can find the source of indexOf(int start, List
public static <T> int indexOf(int start, List<T> datas, T target)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static <T> int indexOf(int start, List<T> datas, T target) { int index = -1; for (int i = start; i < datas.size(); i++) { if (datas.get(i).equals(target)) { index = i;/*from w w w . j av a2 s. c om*/ break; } } return index; } }