static boolean eq(Object x, Object y)
    {
        return x == y || x.equals(y);
    }
static boolean eq(Object x, Object y)
    {
        return x == y || x.equals(y);
    }
static boolean eq ( Object x , Object y ) { return x == y || x . equals ( y ) ; }
Check for equality of non-null reference x and possibly-null y.
Check for equality of non - null reference x and possibly - null y .