Question: I am desperately trying to find a way to get this working. I have a menu that use images for links. But in IE and FF there is an annoying border around the image that I don't know how to get rid of.

Would you be able to quickly tell me the CSS attribute to avoid this effect.

Thanks in advance for your time.

Antonio

Answer: 
== is a comparator

.equals() is a method

The need for `equals` is because comparing objects is not as straight forward as doing a simple comparison.

If you say `object1 == object2`

Then, the result is only true if they point to the same memory space (i.e. they reference the SAME object). 

If however, you want to check that the attributes, or even a subset of attributes of an object are the same, then you would implement your own equals method, and specify what constitutes two objects being equal. 

So, the answer is, what do you define as equal? 

* Two objects that reference the same object in memory? Then use `==`
* or two objects that contain the same data. Then use `.equals()`
It can't be done. That's one C++ feature Java didn't inherited...