Returns the index of the first occurrence of the specified element in
this list, searching forwards from index
, or returns -1 if
the element is not found.
More formally, returns the lowest index i
such that
(i >= index && (e==null ? get(i)==null : e.equals(get(i)))),
or -1 if there is no such index.
e | element to search for | |
index | index to start searching from |
index
or later in the list;
-1
if the element is not found.
IndexOutOfBoundsException | if the specified index is negative |
Diagram: Collection List