Here you can find the source of lastIndexOfNot(byte[] array, int obj)
public final static int lastIndexOfNot(byte[] array, int obj)
//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; } }