回复:求教: 关于java, 真是不太明白

来源: 2005-03-23 07:40:45 [旧帖] [给我悄悄话] 本文已被阅读:

public boolean equals(Name otherName)
{
if(!(this.getFirst().equalsIgnoreCase(otherName.getFirst())))
return false;
if(!(this.getMiddle().equalsIgnoreCase(otherName.getMiddle())))
return false;
if(!(this.getLast().equalsIgnoreCase(otherName.getLast())))
return false;
return true;
)