java compare 2 objects by operator code example Example: how to compare objects in java this.equals(other)