Java Utililty Methods Array Last Index Of

List of utility methods to do Array Last Index Of

Description

The list of methods to do Array Last Index Of are organized into topic(s).

Method

intlastIndexOfRef(T[] ary, int off, int len, T value)
last Index Of Ref
for (int i = off + len - 1; i >= off; i--) {
    if (ary[i] == value) {
        return i;
return -1;
intlastIndexOfTrim(byte[] raw, char ch, int pos)
last Index Of Trim
while (pos >= 0 && raw[pos] == ' ')
    pos--;
while (pos >= 0 && raw[pos] != ch)
    pos--;
return pos;