Java compare 2 object containing Integer for. equality code example Example: how to compare objects in java this.equals(other)