public static final <T> boolean contains(T[] array, T item)
    {
        for (T b : array)
        {
            if (b.equals(item))
            {
                return true;
            }
        }
        return false;
    }
public static final < T > boolean contains ( T [ ] array , T item ) { for ( T b : array ) { if ( b . equals ( item ) ) { return true ; } } return false ; }
Returns true if one of arr members equals item
@param <T>
@param array
@param item
@return