1: public boolean equals(Object other)
2: {
3: boolean result;
4:
5: if (other instanceof Name)
6: {
7: Name otherName = (Name)other;
8: result = first.equals(otherName.first) &&
9: last.equals(otherName.last);
10: } // end if
11:
12: return result;
13: } // end equals
14: // Version 4.0