static boolean contains(Object[] arr,int i,Object obj){
  while (--i >= 0) {
    if (obj.equals(arr[i])) {
      return true;
    }
  }
  return false;
}

static boolean contains ( Object [ ] arr , int i , Object obj ) { while ( -- i >= 0 ) { if ( obj . equals ( arr [ i ] ) ) { return true ; } } return false ; }
returns true if the non - null object is equal to any of the elements of the array with index less than i .
