Java Array Last Index Of lastIndexOfNot(byte[] array, int obj)

Here you can find the source of lastIndexOfNot(byte[] array, int obj)

Description

last Index Of Not

License

Open Source License

Declaration

public final static int lastIndexOfNot(byte[] array, int obj) 

Method Source Code

//package com.java2s;

public class Main {
    public final static int lastIndexOfNot(byte[] array, int obj) {
        for (int i = array.length - 1; i >= 0; i--) {
            if (array[i] != obj)
                return i;
        }//from   w  ww.  j  av a2 s.  co m
        return -1;
    }
}

Related

  1. lastIndexOfAnyNoCheck(byte[] values, byte[] array, int index, int length)
  2. lastIndexOfArray(int r[], int rpos, int rend, char d[], int dpos)
  3. lastIndexOfChars(String src, char[] chars, int startIndex, int endIndex)
  4. lastIndexOfInsensitive(String o, String[] vals)
  5. lastIndexOfNoCheck(byte value, byte[] array, int index, int length)
  6. lastIndexOfRef(T[] ary, int off, int len, T value)
  7. lastIndexOfTrim(byte[] raw, char ch, int pos)