lastIndexOf
Finds the last occurrence of the specified element. Equivalent to findLast(e -> Objects.equals(e, element)).
Return
the last occurrence index, or -1 if not found
Parameters
element
the element to search for (may be null)
Finds the previous occurrence of element before fromIndex (inclusive). Equivalent to findPrevious(fromIndex, e -> Objects.equals(e, element)).
Return
the previous occurrence index, or -1 if not found
Parameters
fromIndex
the starting index (inclusive)
element
the element to search for (may be null)