Package java.lang
Class Integer
Description:
This method compares this object to the specified object. The result is true if and only if the argument is not null and is an Integer object that contains the same int value as this object.
Example
Integer eqA = new Integer("10");
Integer eqB = new Integer("10");
if (eqA.equals(eqB))
Logger.log("correct: A eq B");
The comparison between eqA and eqB delivers a true result.